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

react-dom Hydrate #409

Open
lilactown opened this issue Nov 7, 2018 · 2 comments
Open

react-dom Hydrate #409

lilactown opened this issue Nov 7, 2018 · 2 comments

Comments

@lilactown
Copy link

@lilactown lilactown commented Nov 7, 2018

My team and I are doing SSR of our Reagent applications in Node.js, and want to use React's hydrate function to efficiently render our apps.

Is there any plan to add this to reagent proper?

@Deraen
Copy link
Member

@Deraen Deraen commented Nov 7, 2018

As with other React features, this should already be usable with Reagent without changes.

Try

(react-dom/hydrate (r/as-element [main-component]) container)

@Deraen
Copy link
Member

@Deraen Deraen commented Mar 28, 2019

Lets document this propertly or add a wrapper function.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.