摘要:
JSX语法两种数组的声明方式: 1)第一种,在组件中遍历数组 <script> let names=['web-react','web','react'] var Component = React.createClass({ render: function () { return <div> { 阅读全文
摘要:
<script> var HelloComponent = React.createClass({ render: function () { return <h1>hello world.</h1> } }) ReactDOM.render( <HelloComponent />, documen 阅读全文