I am trying to set the state of my React component but the screen refreshes after the setState method is called and the value is back to default. What is going on?
Here i