ReactDOM.render(
Hello,world!
,document.getElementById('root'));通过render渲染页面,输入Hello,world
const element= <h1> Hello,world! </h1>; html写到js里面去了,这个是jsx。
ReactDOM.render(
通过render渲染页面,输入Hello,world
const element= <h1> Hello,world! </h1>; html写到js里面去了,这个是jsx。
本文标题:React 学习 2 JSX
本文链接:https://www.haomeiwen.com/subject/rjgvixtx.html
网友评论