01.React基础内容
2020-07-12 本文已影响0人
小二的学习日记
下载并安装node
安装react脚手架
在cmd命令行:
npm install -g create-react-app
创建一个react项目
在选定的目录中,执行cmd命令:
create-react-app todolist
运行项目
在cmd中
cd rodolist
npm run start

整理一下项目

在cmd命令行:
npm install -g create-react-app
在选定的目录中,执行cmd命令:
create-react-app todolist
在cmd中
cd rodolist
npm run start