Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example in React #23

Open
cubecleveland opened this issue Jan 17, 2022 · 1 comment
Open

Example in React #23

cubecleveland opened this issue Jan 17, 2022 · 1 comment

Comments

@cubecleveland
Copy link

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

@jpolivra
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants