We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61a7435 + 6760bb7 commit 426d27fCopy full SHA for 426d27f
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