This project is deprecated! Use react-on-maxs
Template for rapid development of React component/library as a standalone package.
- Modern JavaScript features (ES6+)
- Styling with SCSS and PostCSS
- The best developer experience with Storybook
- Testing with Jest
- Building assets with Webpack
git clone git@github.com:Noviel/react-ui-component-template.git
- Modify
package.json
corresponding to your project (name
,author
,repository
, e.t.c) - Create your awesome component in
src/components/MyAwesomeComponent
yarn storybook
to launch storybook- Write some tests
yarn lint
yarn test
yarn build
will produce built filesdist/index.js
anddist/index.css
, which you can include in other projects:
import React from 'react';
import { MyAwesomeComponent } from 'my-ui-lib/dist';
import 'my-ui-lib/dist/index.css';
console.log(<MyAwesomeComponent />);