0.0.1 • Published 3 years ago

react-npm-lib-template v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 to dist

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 in src, if new changes made, it will keep building to dist
  • open another terminal, run cd example && npm start

Publish

npm run build
npm publish