Currently you can only pass static markup to the popup tempaltes for bubbles / hovering over countries, arcs, etc.
You can use ReactDOMServer.renderToString to just get markup but then you're missing out on the component lifecycle methods e.g. componentDidMount, state and prop changes, etc.
@btmills This is the next thing I wanna work on for my project, can get started once the other updates etc are merged in. Might involve overriding datamap's native method for this.
Currently you can only pass static markup to the popup tempaltes for bubbles / hovering over countries, arcs, etc.
You can use
ReactDOMServer.renderToString
to just get markup but then you're missing out on the component lifecycle methods e.g.componentDidMount
, state and prop changes, etc.@btmills This is the next thing I wanna work on for my project, can get started once the other updates etc are merged in. Might involve overriding datamap's native method for this.