Skip to content

Commit 342a6ad

Browse files
SCKelemenpiotrwitek
authored andcommitted
fix spelling mistake (piotrwitek#152)
usefull -> useful
1 parent 33d96b6 commit 342a6ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const Component = ({ children: React.ReactNode }) => ...
138138
```
139139
140140
#### `React.CSSProperties`
141-
Type representing style object in JSX (usefull for css-in-js styles)
141+
Type representing style object in JSX (useful for css-in-js styles)
142142
```tsx
143143
const styles: React.CSSProperties = { flexDirection: 'row', ...
144144
const element = <div style={styles} ...
@@ -624,7 +624,7 @@ export default () => (
624624
## Redux Connected Components
625625
626626
### Caveat with `bindActionCreators`
627-
**If you try to use `connect` or `bindActionCreators` explicitly and want to type your component callback props as `() => void` this will raise compiler errors. It happens because `bindActionCreators` typings will not map the return type of action creators to `void`, due to a current TypeScript limitations.**
627+
**If you try to use `connect` or `bindActionCreators` explicitly and want to type your component callback props as `() => void` this will raise compiler errors. It happens because `bindActionCreators` typings will not map the return type of action creators to `void`, due to current TypeScript limitations.**
628628
629629
A decent alternative I can recommend is to use `() => any` type, it will work just fine in all possible scenarios and should not cause any typing problems whatsoever. All the code examples in the Guide with `connect` are also using this pattern.
630630

0 commit comments

Comments
 (0)