score:1

Accepted answer

you need define type for info state, try this

type infotype = {
   propertyone: any;
}
const [info, setinfo] = usestate<infotype[]>([]);
const { propertyone } = info[0];

score:0

fix

change:

const [info, setinfo] = usestate([])

to something that has propertyinfo e.g.:

 const [info, setinfo] = usestate<{propertyone: any}({propertyone: null});

Related Query

More Query from same tag