- Run
yarn
to install all necessary dependencies. - Make your changes.
- Run the following things in this project directory to create a package link:
yarn build && yarn link
- To test your changes locally, you can use project in
example
folder or create a new one viacreate-react-app
. - Go to
example
folder and runyarn
to install all necessary dependencies. - Link this package in other project directory:
yarn link react-easy-infinite-scroll-hook
- Now you have a linked changes and ready to test it.
- Run
yarn start
to test your changes.
If you have problems with a linked package, try running yarn unlink
and repeat the steps from step 3
.