0.1.3 • Published 8 years ago
react-ui-component-template v0.1.3
React UI Component Template
bI?
Template for rapid development of React component/library as a standalone package.
Features
- Modern JavaScript features (ES6+)
- Styling with SCSS and PostCSS
- The best developer experience with Storybook
- Testing with Jest
- Building assets with Webpack
Install
git clone git@github.com:Noviel/react-ui-component-template.gitQuick start
- Modify
package.jsoncorresponding to your project (name,author,repository, e.t.c) - Create your awesome component in
src/components/MyAwesomeComponent yarn storybookto launch storybook- Write some tests
yarn lintyarn testyarn buildwill produce built filesdist/index.jsanddist/style.css, which you can include in other projects:
import React from 'react';
import { MyAwesomeComponent } from 'my-ui-lib/dist';
import 'my-ui-lib/dist/style.css';
console.log(<MyAwesomeComponent />);