Populating Google Maps infowindow with React renderToString
问题 I am building a GoogleMaps Polygon widget in React JS and want to populate the infowindow with a react component because I need some more complex HTML hierarchy, adding a button in it. I looked on StackOverflow because I wasn't sure how to get the innerHTML of a React component and found this: How to use a react component for showing Google Maps InfoWindow But after implementing I am getting an error on the renderToString function every first time a Polygon is being clicked, see below. Does