Hey @VSengul
Lets start with the first check. Did you put your function where you want to use useState in a React Island?
You need to put the interactive bits in a React Island and render that island from your module. Otherwise the component renders server-side only and never hydrates, so your click handler won’t fire in local dev or on a deployed page.