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 ef8e7ca + 4a81035 commit 02097b4Copy full SHA for 02097b4
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