Say I have an object created with useState like so :
useState
const default= { name: \'default\', id: 01, test: false }; const [test, setTest]