Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6369

What does this syntax mean in React Native and TypeScript?

$
0
0
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?


Viewing all articles
Browse latest Browse all 6369

Trending Articles