react-npm-lib-template

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-npm-lib-template

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

7.23 kB

Total Files

8

Last publish

Collaborators

  • eric14706