FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

Remove deprecated type usage #97

Closed stramel closed 4 years ago

stramel commented 4 years ago

React.Props is deprecated and generally not used.

The most common approach is either to specify the exact props you want ({ children: React.ReactNode } or use the React.FC<Props> to type the entire function.

FredKSchott commented 4 years ago

Thanks. This was just an example to make sure that there was TypeScript syntax somewhere in the project, so no strong preference on this 👍