- 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 should use any separate project with
React
, if you don't have one, I highly recommend creating a new one viacreate-react-app
. - Link this package in other project directory:
yarn link react-stay-in-view
- Now you have a linked changes and ready to test it.
If you have problems with a linked package, try running yarn unlink
and repeat the steps from step 3
.