文章目录
1:ReactDOM.render is not a function
导入 React-DOM存在问题
2:Super expression must either be null or a function, not undefined
React.Component
C没大写
或者单词拼写错误
3:控制台显示:Manifest: Line: 1, column: 1, Syntax error.错误
创建react-app项目时候删除了manifest.json文件,但是在public的index.html中还有它的引入没有删除。
解决办法:把index.html中的这句代码删除:<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />