Skip to content

Commit 05808f9

Browse files
authored
Update README.md
1 parent 9c496f2 commit 05808f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This gives you the power to prioritize our work and support the project contribu
4646
- [Type Definitions & Complementary Libraries](#type-definitions--complementary-libraries)
4747
- [React Types Cheatsheet](#react-types-cheatsheet) 🌟 __NEW__
4848
- [Component Typing Patterns](#component-typing-patterns)
49-
- [Stateless Components - SFC](#stateless-components---sfc)
49+
- [Function Components - FC](#function-components---ffc)
5050
- [Stateful Components - Class](#stateful-components---class) 📝 __UPDATED__
5151
- [Generic Components](#generic-components)
5252
- [Render Props](#render-props) 🌟 __NEW__
@@ -172,9 +172,9 @@ const handleChange = (ev: React.MouseEvent<HTMLDivElement>) => { ... }
172172
173173
# Component Typing Patterns
174174
175-
## Stateless Components - SFC
175+
## Function Components - FC
176176
177-
#### - stateless counter
177+
#### - functional counter
178178
179179
```tsx
180180
import * as React from 'react';
@@ -519,13 +519,13 @@ export const withState = <WrappedProps extends InjectedProps>(
519519
import * as React from 'react';
520520

521521
import { withState } from '../hoc';
522-
import { SFCCounter } from '../components';
522+
import { FCCounter } from '../components';
523523

524-
const SFCCounterWithState =
525-
withState(SFCCounter);
524+
const FCCounterWithState =
525+
withState(FCCounter);
526526

527527
export default () => (
528-
<SFCCounterWithState label={'SFCCounterWithState'} />
528+
<FCCounterWithState label={'FCCounterWithState'} />
529529
);
530530

531531
```

0 commit comments

Comments
 (0)