
const element = <h1>Hello, world!</h1>;
ReactDOM.render(
<div>
<App text="Hello World" />
<App text="How are you doing?" />
</div>,
document.getElementById('app')
);
React allows each control to specify its own data store, called state.
首先是组件的思想,然后有组件的话,必然会涉及到状态