Skip to content
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

Update render method to use reagent.dom.client's createRoot to be able to use React 18 #10

Open
solita-nhuttu opened this issue Aug 4, 2023 · 0 comments

Comments

@solita-nhuttu
Copy link

React 18 will behave like React 17 if references to React.DOM's render are found. To fully launch React 18, React.DOM/render references are to be replaced with reagent.dom.client's createRoot. Requires reagent upgrade to 1.2.0.

Refer to reagent 1.2.0: https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md

Example usage I found online: https://stackoverflow.com/questions/72389560/how-to-rerender-reagent-ui-with-react-18-and-shadow-cljs-reload

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

No branches or pull requests

1 participant