react-svg-map icon indicating copy to clipboard operation
react-svg-map copied to clipboard

Based on condition i want to select the state

Open deepghuge36 opened this issue 2 years ago • 1 comments

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); }

deepghuge36 avatar Dec 24 '21 12:12 deepghuge36

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).

VictorCazanave avatar Feb 26 '22 08:02 VictorCazanave