第一步:建立脚手架react
npm install -g create-react-appnpm
第二步:建立react项目app
create-react-app react-projectspa
第三步:启动项目create-react-app
npm start项目