diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 516f776ce3..9f98457ec2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,16 +57,17 @@ A quick and dirty guide on how to setup *next-auth* locally to work on it and te npm i npm run build -3. Link React between the repo and the version installed in your project: +3. Link your project back to your local copy of next auth: - npm link ../your-application/node_modules/react + cd ../your-application + npm link ../next-auth -*This is an annoying step and not obvious, but is needed because of how React has been written (otherwise React crashes when you try to use the `useSession()` hook in your project).* +4. Finally link React between the repo and the version installed in your project: -4. Finally link your project back to your local copy of next auth: + cd ../next-auth + npm link ../your-application/node_modules/react - cd ../your-application - npm link ../next-auth +*This is an annoying step and not obvious, but is needed because of how React has been written (otherwise React crashes when you try to use the `useSession()` hook in your project).* That's it!