remarkablemark/html-react-parser

Allow React 19 as a peer dependency

Closed this issue · 6 comments

Problem

We're currently using this on a React 19 (RC) project and getting some peer dependencies. Seems that this works all right to just use the parser in a React 19 project, but haven't tested it conclusively.

Suggested Solution

{
  "peerDependencies": {
    "@types/react": "17 || 18",
    "react": "0.14 || 15 || 16 || 17 || 18 || 19"
  },
}

Keywords

React 19, upgrade, RC

@atomrevival thanks for opening this issue, I don't believe React 19 has been officially released yet (see NPM). In the meantime, could you try the following? #1436 (comment)

thany commented

It's probably a good idea to stay ahead of issues like "please support React 19" when it does get released. Also, React 19 has RC status, which is especially the right moment for dependant packages to start adding support for it, in an effort to release an update on the same day as React does.

@thany thanks for the comment. The reason why I'm not locking the RC version for React 19 is because it's still not stable.

If you need to use RC 19 in your project, feel free to follow #1436 (comment).

React 19 has been released, so it would be great to add this now. I've been using rc1 for the past few weeks with html-react-parser in my app and have experienced no problems.

@ptmkenny thanks for the update, I'll add React 19 later today

Release: