b-rc
v0.8.0
Published
react components for budee front-end project
Downloads
206
Readme
#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 less ] }
Then you can import components from antd, equivalent to import manually below.
// import js and css modularly, parsed by babel-plugin-import import { Button } from 'b-rc';
Manually import
import Button from 'b-rc/lib/button'; // for js import 'b-rc/lib/button/style'; // that will import less