@@ -119,7 +119,7 @@ class MyComponent extends React.Component<MyComponentProps, State> { ...
119
119
[⇧ back to top](#table-of-contents)
120
120
121
121
#### ` React .ComponentType <P >`
122
- Type representing union type of (SFC | Component)
122
+ Type representing union type of (FC | Component)
123
123
` ` ` tsx
124
124
const withState = <P extends WrappedComponentProps >(
125
125
WrappedComponent : React .ComponentType <P >,
@@ -179,13 +179,13 @@ const handleChange = (ev: React.MouseEvent<HTMLDivElement>) => { ... }
179
179
` ` ` tsx
180
180
import * as React from ' react' ;
181
181
182
- export interface SFCCounterProps {
182
+ export interface FCCounterProps {
183
183
label: string ;
184
184
count : number ;
185
185
onIncrement : () => any ;
186
186
}
187
187
188
- export const SFCCounter : React .SFC < SFCCounterProps > = (props ) => {
188
+ export const FCCounter : React .FC < FCCounterProps > = (props ) => {
189
189
const { label, count, onIncrement } = props ;
190
190
191
191
const handleIncrement = () => { onIncrement (); };
@@ -211,12 +211,12 @@ export const SFCCounter: React.SFC<SFCCounterProps> = (props) => {
211
211
` ` ` tsx
212
212
import * as React from ' react' ;
213
213
214
- export interface SFCSpreadAttributesProps {
214
+ export interface FCSpreadAttributesProps {
215
215
className?: string ;
216
216
style ?: React .CSSProperties ;
217
217
}
218
218
219
- export const SFCSpreadAttributes : React .SFC < SFCSpreadAttributesProps > = (props ) => {
219
+ export const FCSpreadAttributes : React .FC < FCSpreadAttributesProps > = (props ) => {
220
220
const { children, ... restProps } = props ;
221
221
222
222
return (
0 commit comments