npm安装react

149 阅读1分钟

去桌面创建文件

image.png

$ npm install -g create-react-app 
$ create-react-app my-app

装路由

  npm i --save-dev react-router-dom