npm install -g create-react-app
create-react-app hello-react
cd hello-react
npm start
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
ReactDOM.render(
<React.StrictMode> //检查代码有无不合理的地方
<App />
</React.StrictMode>,
document.getElementById(‘root‘)
);
原文:https://www.cnblogs.com/landuo629/p/14988768.html