var = ({ data }: { data: interfaceModel }) => ( // data is used here)
What does this syntax mean? I know that the second data
has an interface of interfaceModel
. But why are there two occurrences of data
?
var = ({ data }: { data: interfaceModel }) => ( // data is used here)
What does this syntax mean? I know that the second data
has an interface of interfaceModel
. But why are there two occurrences of data
?