初始化:npx create-react-app my-app
cd my-app 进入到项目里
启动:npm start
在react脚手架中使用react:
1.在src包下把index.js中的内容替换成这个
2.看public 包下的index.js,改动内容会实时展现在这个上面。