YuJian
3 years ago
1 changed files with 5 additions and 3 deletions
@ -1,9 +1,11 @@ |
|||||||
# 深入理解 JSX |
# 深入理解 JSX |
||||||
```javascript |
```javascript |
||||||
/** |
/** |
||||||
|
* type JSX 的类型 |
||||||
**/ |
* config JSX 中的属性 |
||||||
|
* children JSX 的子元素 |
||||||
|
*/ |
||||||
React.createElement(type, config, children) |
React.createElement(type, config, children) |
||||||
``` |
``` |
||||||
|
|
||||||
有对应 DOM 节点的组件被称为 Host Component |
- 有对应 DOM 节点的元素在 React 中被称为 Host Component |
Loading…
Reference in new issue