React的使用小规范----长期更新

用this.state控制组件显示,用this.props控制页面业务数据,用this.other保存其他需要的属性,如计时器setInterval的id

原文地址:https://www.cnblogs.com/ww01/p/10919061.html