microsoft / TypeScript-React-Starter

A starter template for TypeScript and React with a detailed README describing how to use the two together.
MIT License
11.08k stars 1.21k forks source link

Update README.md #193

Closed cyberhck closed 5 years ago

cyberhck commented 6 years ago

Using default props makes it easy to manage defaults, if there are many default props, keeping them separate also makes it more easy, in case of something which might render a lot of times, adding as static property might give a tiny bit performance boost.

Next is to use the return type: JSX.Element