Skip to content

highlights a code block in docs/markdown/1_react.md #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ A decent alternative I can recommend is to use `() => any` type, it will work ju
> 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).

> 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:
```
```ts
const mapDispatchToProps = (dispatch: Dispatch<ActionType>) => ({
onIncrement: () => dispatch(actions.increment()),
});
Expand Down
2 changes: 1 addition & 1 deletion docs/markdown/1_react.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ A decent alternative I can recommend is to use `() => any` type, it will work ju
> 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).

> 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:
```
```ts
const mapDispatchToProps = (dispatch: Dispatch<ActionType>) => ({
onIncrement: () => dispatch(actions.increment()),
});
Expand Down