w8r/geojson2svg

Example in React

Opened this issue · 1 comments

Hello, tryng to browse via the docs, seems a little trickt to get a simple working version

We have a simple geojson
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-81.631164,41.509982],[-81.65245,41.454192],[-81.574173,41.443244],[-81.553688,41.540399],[-81.631164,41.509982]]]},"properties":{"color":"#3388ff","fillColor":"blue"}}

Ani idea how i can out put it as a react compoenent and render to the DOM

I've tried using this with React integration, but the return that the render() methods is a HTML String, I would like to use it without having to install some parser, but I didn't find a solution out of range of using the dangerouslySetInnerHTML prop from React.