Skip to content

Support React 19 as a Peer Dependency #19

@pkat

Description

@pkat

Description

Currently, the package.json for @dwolla/react-drop-ins specifies peer dependencies that are limited to React 18.x:

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

As React 19 has now been released (or is in wide adoption), this restriction prevents users on React 19 from smoothly adopting react-drop-ins. It would be helpful if React 19 support could be added.

Context

I recently tried using @dwolla/react-drop-ins with a project upgrading to React 19 and encountered a peer dependency warning, which can affect installation or bundling. Given that the core functionality appears compatible, relaxing the version range seems like a good move.

Proposed Enhancement

Expand the peer dependency range to include React 19, for example:

"peerDependencies": {
  "react": "^18.0.0 || ^19.0.0",
  "react-dom": "^18.0.0 || ^19.0.0"
}

Benefits

  • Aligns with projects that have already upgraded to React 19.
  • Improves compatibility and reduces friction for users adopting newer React versions.
  • Likely to be a low-impact change if the library doesn’t rely on React-18-only APIs, helping ensure broader adoption. Although if there are any breaking changes or deprecations in React 19 that impact this library, they should be tested and identified.

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