5.事件的监听
具体代码可以参考我的github中的first-react
上面我们是通过setTimeout实现对于state中content的变化,我现在通过点击事件来控制其中的参数
class Content extends Component {
constructor(props) {
super(props);
this.state = {
具体代码可以参考我的github中的first-react
上面我们是通过setTimeout实现对于state中content的变化,我现在通过点击事件来控制其中的参数
class Content extends Component {
constructor(props) {
super(props);
this.state = {