Skip to content

Commit 5142fb1

Browse files
jeongukjaepiotrwitek
authored andcommitted
highlights a code block in docs/markdown/1_react.md (piotrwitek#116)
1 parent 1a06dd6 commit 5142fb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ A decent alternative I can recommend is to use `() => any` type, it will work ju
637637
> If there is any progress or fix in regard to the above caveat I'll update the guide and make an announcement on my twitter/medium (There are a few existing proposals already).
638638
639639
> There is alternative way to retain type soundness but it requires an explicit wrapping with `dispatch` and will be very tedious for the long run. See example below:
640-
```
640+
```ts
641641
const mapDispatchToProps = (dispatch: Dispatch<ActionType>) => ({
642642
onIncrement: () => dispatch(actions.increment()),
643643
});

docs/markdown/1_react.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ A decent alternative I can recommend is to use `() => any` type, it will work ju
176176
> If there is any progress or fix in regard to the above caveat I'll update the guide and make an announcement on my twitter/medium (There are a few existing proposals already).
177177
178178
> There is alternative way to retain type soundness but it requires an explicit wrapping with `dispatch` and will be very tedious for the long run. See example below:
179-
```
179+
```ts
180180
const mapDispatchToProps = (dispatch: Dispatch<ActionType>) => ({
181181
onIncrement: () => dispatch(actions.increment()),
182182
});

0 commit comments

Comments
 (0)