React Component Library
If you have tried it, let's face it BUILDING REACT COMPONENT LIBRARIES IS NOT EASY. Having used may existing templates utilising webpack or rollup I have been frustrated by various hurdles such as:-
- Fail to publish to NPM as ESN modules.
- Do not support SASS
- Import of modules fbreaks when you attempt to consume library via an external application
- Imports break when hooks are used in your component library
- Developing your test or demonstration environment using npm link is cumbersome and requires rebuilding package, caching headaches and no support for hot loading
This template allows your library to be developed in the src folder. You can place your demonstration / test application in the demo folder and link to it through an alias that matches your externally published package name.
Development
Testing
npm start
or
yarn start
Building
npm run build
or
yarn build
Publishing
npm run publish
or
yarn publish
## Storybook
To run a live-reload Storybook server on your local machine:
npm run storybook