So I'm using react-rails and I'd like to render a component that contains a ton of other components... but I don't want all of it to hydrate. Essentially, I don't want to have to do this:
= react_component('components/Square', { }, prerender: true)
= react_component('components/Ad', { }, prerender: false)
= react_component('components/Square', { }, prerender: true)
= react_component('components/Ad, { }, prerender: false)
I'd like to render just a full page in my haml files:
= react_component('pages/Home', { }, prerender: true)
But when I'm rendering the specific Ad components in there, stop the hydration on those. Any advice?
So I'm using react-rails and I'd like to render a component that contains a ton of other components... but I don't want all of it to hydrate. Essentially, I don't want to have to do this:
I'd like to render just a full page in my haml files:
= react_component('pages/Home', { }, prerender: true)But when I'm rendering the specific Ad components in there, stop the hydration on those. Any advice?