-
-
Notifications
You must be signed in to change notification settings - Fork 112
Using npm link
Yuri Victor Munayev edited this page Nov 2, 2022
·
4 revisions
There are sometimes when you want to develop a real create react app then you want to make changes in the library to test the changes in the react app. For this, you need to use the npm link.
- Create a testing create-react-app inside the examples folder
- Inside testing folder run:
yarn add @rainbow-modules/hooks @rainbow-modules/app @rainbow-modules/validation styled-components react-rainbow-components
- Inside the root folder do the following:
- yarn install
- yarn clean
- yarn build
- yarn link
- remove node_modules in root
- Back to the testing folder do the following:
- yarn link react-rainbow-components
- yarn start