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

Why "he" does not write React.FC on each function?

$
0
0

I learn typescript, and I dont understand why he write in the first Function React.FC and in other function he does not write "React.FC". Why?

exp:

...const Login: React.FC<Props> = ({ signIn }) => { const Add = (id: number) => {   ...  }; return (<div><p>Hello</p></div>)};

Why I dont write React.FC in Add function ?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>