Files
2018-10-16 21:32:40 +05:30

20 lines
445 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Render HTML Elements to the DOM
localeTitle: 将HTML元素渲染到DOM
---
# 将HTML元素渲染到DOM
要将元素呈现给DOm我们使用以下语法
```javascript
ReactDOM.render(<item to be rendered>, <where to be rendered>);
```
## 解
遵循语法我们将添加这行代码以将JSX元素呈现给具有challenge-node的id的div。
```javascript
ReactDOM.render(JSX,document.getElementById('challenge-node'));
```