-
-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jsx/dom): introduce react-dom/client APIs and React.version #2795
Conversation
@yusukebe How about including this in v4.4? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a comment. And can you update the exports
field in jsr.json
?
Nice! Let's include this. |
One thing. Please update the |
I'm fixing it, just give me a minute. |
Sorry I'm late, fixed. 2e0dbca |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you! Now, I'll merge this into the next. The |
Fixes #2792
version
There seems to be a library that does conditional branching on the major version number of
React.version
.This is like a UserAgent of a web browser (e.g. Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537. 36), which is a string for compatibility and somewhat unpleasant to use, and we do not recommend its use, but if this improves compatibility, it should be added.
createRoot / hydrateRoot
Some options are not yet supported, but they can be rendered in the way recommended by React since version 18, as shown in the following diff.
usualoma/hono-react-compat-demo@3877355
The author should do the following, if applicable
bun run format:fix && bun run lint:fix
to format the code