State not updating onChange

Go to top