构建我的第一个react项目

xiaoxiao2021-02-28  70

基本环境:安装了node

构建react项目步骤:

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

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

执行以下命令创建项目:

$ cnpm install -g create-react-app $ create-react-app my-app my-app是要创建的项目的名称,这一步要一段时间 $ cd my-app/ 进入我的项目 $ npm start 启动

转载请注明原文地址: https://www.6miu.com/read-84378.html

最新回复(0)