DEV Community

Discussion on: How to modify config of Create React App - without Ejecting!

Collapse
kildareflare profile image
Rich Field Author

In the library I updated the package.json, moving React from dependencies to peerDependencies
E.g.

  "peerDependencies": {
    "react": "^16.12.0"
  }
Enter fullscreen mode Exit fullscreen mode