Skip to content

Commit 9c496f2

Browse files
authored
Update README.md
1 parent 7b63ed9 commit 9c496f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class MyComponent extends React.Component<MyComponentProps, State> { ...
119119
[⇧ back to top](#table-of-contents)
120120
121121
#### `React.ComponentType<P>`
122-
Type representing union type of (SFC | Component)
122+
Type representing union type of (FC | Component)
123123
```tsx
124124
const withState = <P extends WrappedComponentProps>(
125125
WrappedComponent: React.ComponentType<P>,
@@ -179,13 +179,13 @@ const handleChange = (ev: React.MouseEvent<HTMLDivElement>) => { ... }
179179
```tsx
180180
import * as React from 'react';
181181

182-
export interface SFCCounterProps {
182+
export interface FCCounterProps {
183183
label: string;
184184
count: number;
185185
onIncrement: () => any;
186186
}
187187

188-
export const SFCCounter: React.SFC<SFCCounterProps> = (props) => {
188+
export const FCCounter: React.FC<FCCounterProps> = (props) => {
189189
const { label, count, onIncrement } = props;
190190

191191
const handleIncrement = () => { onIncrement(); };
@@ -211,12 +211,12 @@ export const SFCCounter: React.SFC<SFCCounterProps> = (props) => {
211211
```tsx
212212
import * as React from 'react';
213213

214-
export interface SFCSpreadAttributesProps {
214+
export interface FCSpreadAttributesProps {
215215
className?: string;
216216
style?: React.CSSProperties;
217217
}
218218

219-
export const SFCSpreadAttributes: React.SFC<SFCSpreadAttributesProps> = (props) => {
219+
export const FCSpreadAttributes: React.FC<FCSpreadAttributesProps> = (props) => {
220220
const { children, ...restProps } = props;
221221

222222
return (

0 commit comments

Comments
 (0)