chrvadala / react-svg-pan-zoom

:eyes: A React component that adds pan and zoom features to SVG
https://chrvadala.github.io/react-svg-pan-zoom/
MIT License
681 stars 127 forks source link

Question: How can I add dynamically an svg ? #132

Closed levaifelasticad closed 5 years ago

levaifelasticad commented 5 years ago

I tried with this syntax:

render() { return (

        </div>
    );
}

where this.props.svgString is a string containing an svg file content.

guy-at-ttt commented 5 years ago

Did you find a solution for this? I tried to do a similar thing but i ended up "lagging" the page with every update.

chrvadala commented 5 years ago

Yes, there's is a subproject (relative new) here https://github.com/nufaylr/react-svg-pan-zoom-loader