在src文件夹中找到index.js中目标容器id:root
const appRoot = ReactDOM.createRoot( document.getElementById('root') );
将id名设置和public文件index.html文件中< div id = "root" > </ div > 的 id 名一致
在src文件夹中找到index.js中目标容器id:root
const appRoot = ReactDOM.createRoot( document.getElementById('root') );
将id名设置和public文件index.html文件中< div id = "root" > </ div > 的 id 名一致