标签:idm logs http lint efs cti mount ted pre
报错1: var Hello = createReactClass({ componentDidMount: function() { var component = this.refs.test; }, render: function() { return <div ref="test">ref, test.</div>; } }); 正确: var Hello = createReactClass({ 2 componentDidMount: function() { 3 var component = this.test; 4 5 }, 6 render() { 7 return <div ref={(c) => { this.test = c; }}>test, ref.</div>; 8 } 9 });
标签:idm logs http lint efs cti mount ted pre
原文地址:http://www.cnblogs.com/weilantiankong/p/7603005.html