Closed deepghuge36 closed 1 year 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); }
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).
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); }