We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52852db + 52a10a9 commit 803b470Copy full SHA for 803b470
README.md
@@ -77,7 +77,7 @@ Please PR or [File an issue](https://github.com/sw-yx/react-typescript-cheatshee
77
You can specify the type of props as you destructure them:
78
79
```tsx
80
-const App = ({ message: string }) => <div>{message}</div>;
+const App = ({ message }: { message: string }) => <div>{message}</div>;
81
```
82
83
Or you can use the provided generic type for functional components:
0 commit comments