Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 654 Bytes

DEVELOPMENT.md

File metadata and controls

18 lines (15 loc) · 654 Bytes

Development Process

  1. Run yarn to install all necessary dependencies.
  2. Make your changes.
  3. Run the following things in this project directory to create a package link:
yarn build && yarn link
  1. 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 via create-react-app.
  2. Link this package in other project directory:
yarn link react-stay-in-view
  1. Now you have a linked changes and ready to test it.

Troubleshooting

If you have problems with a linked package, try running yarn unlink and repeat the steps from step 3.