Rendering my SVG in React is working fine
render () {
return (
<object type="image/svg+xml" data="./src/img/test.svg" ref="svg">
</object>
)
}
I am looking to allow the user to customize the fill color by selecting a specific color, which will be passed as a prop. How can I modify the SVG style before it is rendered?
I have explored making these changes in componentDidUpdate(), but I believe this goes against the typical React design pattern of manipulating the DOM directly.