利用create-react-app配置react环境,一键搞定。npm install -g create-react-appcreate-react-app myApp //myApp是项目名cd myApp/npm start //启动reactreact