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()
This should render the HTML.
import ReactDOMServer from "react-dom/server"; const html = ReactDOMServer.renderToString(...)