@@ -46,7 +46,7 @@ This gives you the power to prioritize our work and support the project contribu
46
46
- [ Type Definitions & Complementary Libraries] ( #type-definitions--complementary-libraries )
47
47
- [ React Types Cheatsheet] ( #react-types-cheatsheet ) 🌟 __ NEW__
48
48
- [ Component Typing Patterns] ( #component-typing-patterns )
49
- - [ Stateless Components - SFC ] ( #stateless -components---sfc )
49
+ - [ Function Components - FC ] ( #function -components---ffc )
50
50
- [ Stateful Components - Class] ( #stateful-components---class ) 📝 __ UPDATED__
51
51
- [ Generic Components] ( #generic-components )
52
52
- [ Render Props] ( #render-props ) 🌟 __ NEW__
@@ -172,9 +172,9 @@ const handleChange = (ev: React.MouseEvent<HTMLDivElement>) => { ... }
172
172
173
173
# Component Typing Patterns
174
174
175
- ## Stateless Components - SFC
175
+ ## Function Components - FC
176
176
177
- #### - stateless counter
177
+ #### - functional counter
178
178
179
179
` ` ` tsx
180
180
import * as React from ' react' ;
@@ -519,13 +519,13 @@ export const withState = <WrappedProps extends InjectedProps>(
519
519
import * as React from ' react' ;
520
520
521
521
import { withState } from ' ../hoc' ;
522
- import { SFCCounter } from ' ../components' ;
522
+ import { FCCounter } from ' ../components' ;
523
523
524
- const SFCCounterWithState =
525
- withState (SFCCounter );
524
+ const FCCounterWithState =
525
+ withState (FCCounter );
526
526
527
527
export default () => (
528
- <SFCCounterWithState label = { ' SFCCounterWithState ' } />
528
+ <FCCounterWithState label = { ' FCCounterWithState ' } />
529
529
);
530
530
531
531
` ` `
0 commit comments