React & React-native Styled Components from Connacx
(cd apps/next-comp-gallery/node_modules/react && yarn link) && (cd apps/next-comp-gallery/node_modules/react-dom && yarn link)
yarn link react && yarn link react-dom
issues
- bundling issue => needed to use rollup
- react cannot be resolved
- invalid hook issue due to main app and package using both react and react dom and these 2 libraries are in 2 places/node_modules solution:
- in app, (cd node_modules/react && yarn link)
- in package, yarn link react
- do the same for react-dom as well