为社区建设略尽绵薄之力!参与 2021 社区问卷调查!
此站点不再更新。了解新站点的更多信息!

Create Apps with No Configuration

July 22, 2016 by Dan Abramov

此博客已经归档。访问 zh-hans.react.dev/blog 查看最新的文章。

Create React App is a new officially supported way to create single-page React applications. It offers a modern build setup with no configuration.

Getting Started

Installation

First, install the global package:

npm install -g create-react-app

Node.js 4.x or higher is required.

Creating an App

Now you can use it to create a new app:

create-react-app hello-world

This will take a while as npm installs the transitive dependencies, but once it’s done, you will see a list of commands you can run in the created folder: