VictorCazanave / react-svg-map

A set of React.js components to display an interactive SVG map
https://victorcazanave.github.io/react-svg-map/
MIT License
229 stars 48 forks source link

Based on condition i want to select the state #56

Closed deepghuge36 closed 1 year ago

deepghuge36 commented 2 years ago

I have the condition on the basis I want to select the state and show that state is selected how I can do that?

function handleclick(id, stateName) { console.log("im clilck"); setStateCode(id); setStateName(stateName); setDisplayState(stateName); }

VictorCazanave commented 2 years ago

Hi @deepghuge36, It looks similar to the demo. Have you looked at the examples' source code? If this is not what you want, please detail your needs and share more code (in https://codesandbox.io/ for example).