代码:var React = require('react');
React.render(<div>test</div>,
document.getElementById('box')
);怎么会报Warning: React.render is deprecated. Please use ReactDOM.render from require('react-dom') instead.
3 回答
慕田峪4524236
TA贡献1875条经验 获得超5个赞
var React = require('react'); var ReactDOM = require('react-dom'); ReactDOM.render( <div>test</div>, document.getElementById('box')
添加回答
举报
0/150
提交
取消