I\'m working on a map-based app that uses Google Map API to create markers and its info window in React.js. The infowindow.setContent() only accepts either a
infowindow.setContent()
For newer versions of React
import ReactDOMServer from "react-dom/server"; let html = ReactDOMServer.renderToString(...)