Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

Set react as peerDependencies instead of dependencies in package.json #43

@erikmoren

Description

@erikmoren

From this medium article:

Expressing this as a peerDependency causes npm to not include React in the published package, which reduces package size and avoids the disaster of having multiple versions of React in the user’s target project.

For example:

  "peerDependencies": {
    "react": "^16.3.1",
    "react-dom": "^16.3.1"
  },

Polaris does the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions