Template for creating react library with storybook
- To quick start building react library.
- Using ReactJs.
- StoryBook
Tech
Installation
Install the dependencies.
$ npm install
To run storybook
npm run storybook
Create build
npm run build
npm
Publish toYou need to sign up first to npm
npm login
npm version 0.0.1 // version to start with
npm publish --access=public // with public access to your library
Important links to read
-
libraryTarget
in Webpack config : https://github.com/umdjs/umd -
"How to?"
guide for storybook beginners. https://www.learnstorybook.com/react/en/simple-component/