I have added a property to state.
const[person, setPersonObj] = useState({});
setPersonObj({...person, age: 24});
and using in jsx and i can see the age.
<input type="text" value = {person.age} />
but when I am again destructing person object it is not showing me the age property.
const personObj = {...person};
personObj.age is undefined;
All this is done in one event.