B-RC
B-RC Components build with React and Ant Design.
B-RC Components design for MiFanFan Desktop front-end projects
Install
With npm
npm install b-rc --save
With yarn
yarn add b-rc
Usage
Use modularized antd
-
Use babel-plugin-import (Recommended)
// .babelrc or babel-loader option"plugins":"import" libraryName: "b-rc" style: "css" // `style: true` for lessThen you can import components from antd, equivalent to import manually below.
// import js and css modularly, parsed by babel-plugin-importimport Button from 'b-rc'; -
Manually import
import Button from 'b-rc/lib/button'; // for jsimport 'b-rc/lib/button/style'; // that will import less