How to fix the multiple-instances of React error when using linked NPM modules that import React as a peer dependency
In your app that you are receiving the multiple-version error:
- Go to
node_modules/react
- Run
yarn link
In your linked module that also uses React:
- Run
yarn link react