I\'m trying to set state and i could see values are reflecting when i console log it but in UI changes are not reflecting
is it correct way to set state using hooks