Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add React 18 support #68

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Add React 18 support #68

wants to merge 2 commits into from

Conversation

fkapsahili
Copy link

@fkapsahili fkapsahili commented Jan 9, 2024

This is a proposal to add support for React 18. For React 18, ReactDOM.render and ReactDOM.hydrate are deprecated, so the new ReactDOM.createRoot and ReactDOM.hydrateRoot methods must be used:

https://react.dev/reference/react-dom/client/createRoot#createroot
https://react.dev/reference/react-dom/client/hydrateRoot#hydrateroot

Since the SSR examples are quite old and Hypernova has also been deprecated, I have not yet been able to extensively test the case where hydrateRoot is used. Unfortunately, I can no longer get the old SSR examples to work because the node version is too old 🙂. Can you check if it works or let me know how I can test it?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant