http://docs.sencha.com/extreact/6.5.0/guides/using_create_react_app.html
在,src / index.js替换:
import ReactDOM from 'react-dom';
使用:
import { launch } from '@extjs/reactor';
并替换
ReactDOM.render(<App />, document.getElementById('root'))
使用:
launch(<App />);
当我执行此步骤,用新的2行替换这2行时。 我收到错误:
./node_modules/@extjs/reactor/dist/ExtJSComponent.js
Module not found: Can't resolve 'react-dom/lib/DOMLazyTree' in 'C:\Users\Dev36\Desktop\MILOS\client\node_modules\@extjs\reactor\dist'
答案 0 :(得分:1)
问题在于;虽然他们说Ext React 6.5.3支持反应16(https://www.sencha.com/blog/announcing-sencha-extreact-6-5-3-ga-and-react-16-ea/),但事实并非如此。尝试降级反应和反应至15.5.4