react-npm-lib-template
v0.0.1
Published
npm react library release template
Downloads
2
Readme
react-npm-lib-template
npm react library release template
Development
- create react component in
src
- make sure, the component are exported (named or default) in
src/index.js
- run
npm run build
to build the component todist
use example
to render the developed component in create-react-app, see the README in example
:
- open terminal, run
npm run watch
will keep watch changes insrc
, if new changes made, it will keep building todist
- open another terminal, run
cd example && npm start
Publish
npm run build
npm publish