create-react-app 是来自于 Facebook,通过该命令我们无需配置就能快速构建 React 开发环境。

create-react-app 自动创建的项目是基于 Webpack + ES6 。

1.$ cnpm install -g create-react-app

2.$ create-react-app my-app

【React】使用 create-react-app 快速构建 React 开发环境

 

3.$ cd my-app/

$ npm start

【React】使用 create-react-app 快速构建 React 开发环境

 

【React】使用 create-react-app 快速构建 React 开发环境

项目目录

【React】使用 create-react-app 快速构建 React 开发环境

create-react-app 执行慢的解决方法

 【React】使用 create-react-app 快速构建 React 开发环境

 

相关文章:

  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2021-12-09
  • 2021-04-22
  • 2021-11-10
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2021-09-06
  • 2021-12-09
  • 2022-12-23
  • 2022-02-22
相关资源
相似解决方案