Skip to content

[RFC] Add Support for React 19 Compatibility in Plasmo #1141

@sashamorozov

Description

@sashamorozov

How do you envision this feature/change to look/work like?

Plasmo should work with React 19 without blocking updates due to version checks. Right now, the framework checks for a specific React version and fails if React 19 is used. Additionally, there is no folder or template similar to cli/plasmo/templates/static/react18, which would make it easier to support the new version.

The idea is to remove or loosen the version checks and add a React 19-specific folder/template if needed.

What is the purpose of this change/feature? Why?

The lack of support for React 19 prevents developers from upgrading to the latest React version. This blocks access to new features, better performance, and long-term updates, making projects feel stuck on older versions.

Adding support would let developers upgrade without worries and keep their projects modern.

(OPTIONAL) Example implementations

  1. Remove or update the React version checks to support React 19
  2. Add a react19 folder/template, similar to the existing react18 folder in cli/plasmo/templates/static/
  3. ...

(OPTIONAL) Contribution

  • I would like to contribute to this RFC via a PR

Verify canary release

  • I verified that the issue exists in plasmo canary release

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions