react-render-in-browser icon indicating copy to clipboard operation
react-render-in-browser copied to clipboard

Did not expect server HTML to contain a <div> in <main>. (Server side rendering)

Open ray-su opened this issue 6 years ago • 3 comments

I got an error when using it with SSR: Did not expect server HTML to contain a <div> in <main>.

ray-su avatar Jun 05 '19 18:06 ray-su

This lib is not SSR ready yet. Maybe we should to add something to support SSR.

flexdinesh avatar Jun 20 '19 01:06 flexdinesh

@flexdinesh Maybe check if the environment is a browser? like checking if window object exists? btw thank you for making this awesome library.

ray-su avatar Jun 20 '19 02:06 ray-su

Thank you. I'll try to smash some code soon to get this to work with SSR.

flexdinesh avatar Jun 20 '19 06:06 flexdinesh