组件开发文档
nodejs
$ npm run start
$ npm run build
It is recommended to use npm publish
npm publish
If you have a custom requirement, refer to scripts/release.sh, somtimes you need to modify it.
scripts/release.sh
蓝色按钮,定制组件
``
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import BlueButton from '../src'; class App extends Component { constructor(props) { super(props); } render() { return ( <BlueButton/> ); } } ReactDOM.render(( <App /> ), mountNode);
.my-css { /* codes here */ color: #fff; }