Skip to content

Commit 7845b74

Browse files
Update _includes/markdown/Typescript.md
Co-authored-by: Antonio Laguna <[email protected]>
1 parent b7eaafd commit 7845b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/markdown/Typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const MyComponent: React.FC<MyComponentProps> = (props) => {
126126
```
127127
**Note**: If using React < 17, be aware that `children` will be explicitly set for all components using `React.FC`. This can cause some TS errors when upgrading React to 18+, if a component is passed `children` but does not explicitly declare it as a prop.
128128

129-
The [React TypeScript Cheatsheet](https://react-typescript-cheatsheet.netlify.app/) is a good resource to check how to type specific things in React (e.g Forms, Events etc).
129+
The [React TypeScript Cheatsheet](https://react-typescript-cheatsheet.netlify.app/) is a good resource to check how to type specific things in React (e.g. Forms, Events etc).
130130

131131
### Use function default arguments instead of `defaultProps`
132132

0 commit comments

Comments
 (0)