react

react符合JSX 语法,可以在js中直接编写html代码,并向指点dom节点添加元素

ReactDOM.render(
  <h1>Hello, world!</h1>,
  document.getElementById('example')
);

 

posted @ 2017-10-10 07:52  与你同行hello  阅读(71)  评论(0编辑  收藏  举报