0.0.1 • Published 4 years ago
react-npm-lib-template v0.0.1
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 buildto 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 watchwill 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 publish0.0.1
4 years ago