0

I have this SVG with hundreds of polygons with assigned object IDs. With SVGR I converted my SVG to a React component. The goal is to make it so that when the user clicks a certain polygon it will change color.
I figured the most straightforward way to do it is with useState array and pass it as ...