jab hme kisi object ki kisi ek value ko use karna hai with some consition like ( useeffect mai ya use state mai ) then we use object destructering
basically hm object ki us value ko kisi or name se assign kar dete hai or usse use kar skte hai
const [form,formReducer]=useReducer(formReducerFn,{userTitle:"This is use title",date:"22-04-22",amount:"450"});
ab yaha par usereducer ka use karke hm form ki saari values ko update kar rhe hai na ki usestate ka use karke to yaha par agar hme koi validation lagana ho on usertitle to hm usertitle ko object mai se destruct karege
const {userTitle: titlteReducer}=formReducer // formReducer is an object containg all the // latest values of the state on that time in the form