一步一步去看react
的文档实在是太累了,我要直接装脚手架了,一步到位,其余的基础的东西慢慢学习吧
安装create-react-app
$ npm isntall -g create-react-app
查看版本
$ create-react-app --version
4.0.3
创建应用
$ create-react-app my-react-app
安装依赖&运行
$ cd my-app
安装依赖
$ npm install
运行
$ npm start