Skip to content

Commit 7b63ed9

Browse files
authored
📖Update to use FC and not SFC
DefinitelyTyped/DefinitelyTyped#30364
1 parent 1a06dd6 commit 7b63ed9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ npm i -D @types/react @types/react-dom @types/react-redux
104104

105105
# React Types Cheatsheet
106106

107-
#### `React.StatelessComponent<P>` or `React.SFC<P>`
108-
Type representing stateless functional component
107+
#### `React.FunctionComponent<P>` or `React.FC<P>`
108+
Type representing a functional component
109109
```tsx
110-
const MyComponent: React.SFC<MyComponentProps> = ...
110+
const MyComponent: React.FC<MyComponentProps> = ...
111111
```
112112
[⇧ back to top](#table-of-contents)
113113

0 commit comments

Comments
 (0)