We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 01d7ca6 + 27febb4 commit 62f8fd0Copy full SHA for 62f8fd0
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