//导入react
import React from 'react'
import ReactDOM from 'react-dom'
//使用JSX创建
const title = <h1>Hello JSX</h1>
//渲染react元素
ReactDOM.render(title,document.getElementById('root'))
03-07
697
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-05
114
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)