react-googlemaps icon indicating copy to clipboard operation
react-googlemaps copied to clipboard

server-side rendering

Open joernroeder opened this issue 10 years ago • 3 comments

Hey, i'm currently just playing around, and looked over the source. I saw that you're referencing the window object at some points. As far as i checked it out this will throw an Error and makes server side rendering impossible. Do you have any plan to support React.renderToString aka. server-side rendering ?

Thanks in advance!

joernroeder avatar Mar 05 '15 01:03 joernroeder

I had the same challenge. This component is a super user friendly component for client-side, but when you're doing isomorphic rendering it's not quite ready for prime time.

You might want to check out https://github.com/matnel/react-maps. Implemented server and client-side together with no issues.

seanpharvey avatar Apr 20 '15 17:04 seanpharvey

Any movement on this issue?

ivosabev avatar Apr 16 '16 12:04 ivosabev

@ivosabev i've ended up using https://github.com/MicheleBertoli/react-gmaps

joernroeder avatar Apr 16 '16 13:04 joernroeder