Skip to content
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.

  1. Create a testing create-react-app inside the examples folder
  2. Inside testing folder run: yarn add @rainbow-modules/hooks @rainbow-modules/app @rainbow-modules/validation styled-components react-rainbow-components
  3. Inside the root folder do the following:
  • yarn install
  • yarn clean
  • yarn build
  • yarn link
  • remove node_modules in root
  1. Back to the testing folder do the following:
  • yarn link react-rainbow-components
  • yarn start
Clone this wiki locally