A template for creating your react package.
- Replace the content in src/lib with your own component or library.
- Test run your library by importing in
App.js
and runningnpm start
. - Specify entry file in rollup's config input property (
rollup.config.js
). - Run
npm run build
to bundle. - run
npm link
andnpm link <package-name>
from the root of your project to test bundle. - Test run your bundle by importing into
App.js
from the package name and runningnpm start
.
To learn more. Read the article