ant-design/docs/react/install.en-US.md
2016-12-21 19:34:20 +08:00

2.1 KiB
Raw Blame History

order title
2 Installation

Using npm to install

We recommend using npm to installit not only makes development easierbut you can also take advantage of the whole ecosystem.

If using npm to install, you could use import or require.

Stable version

npm package

$ npm install antd --save

You can subscribe to this feed for new version notification: https://github.com/ant-design/ant-design/releases.atom

Beta version

$ npm install antd@beta --save

Import in Browser

CDNJS

We provide antd.js antd.css and antd.min.js antd.min.css under antd/dist in antd's npm package, in order to import all the components of antd directly. Also, you can use unpkg.

It's not recommended to use the already built files, as you cannot get bugfixes from the dependencies of antd.

stable

beta

Here is an example of how to build your own antd.js if you are using antd@<1.0.0.

Development tool

We provide React components Scaffold tool.

$ npm install dva-cli -g

Run dva new myapp to init a React application.

You can explore the latest structure of scaffold here, it is a good habit to watch this repo to get the latest features.

More development tool features