Skip to content

Commit 102151b

Browse files
Update README.md
`Dispatch` is no longer exported from `react-redux` but rather, `redux`: microsoft#160
1 parent 9df982f commit 102151b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,8 @@ Let's create a file named `src/containers/Hello.tsx` and start off with the foll
637637
import Hello from '../components/Hello';
638638
import * as actions from '../actions/';
639639
import { StoreState } from '../types/index';
640-
import { connect, Dispatch } from 'react-redux';
640+
import { connect } from 'react-redux';
641+
import { Dispatch } from 'redux';
641642
```
642643

643644
The real two key pieces here are the original `Hello` component as well as the `connect` function from react-redux.
@@ -690,7 +691,8 @@ When we're finished, our file should look like this:
690691
import Hello from '../components/Hello';
691692
import * as actions from '../actions/';
692693
import { StoreState } from '../types/index';
693-
import { connect, Dispatch } from 'react-redux';
694+
import { connect } from 'react-redux';
695+
import { Dispatch } from 'redux';
694696

695697
export function mapStateToProps({ enthusiasmLevel, languageName }: StoreState) {
696698
return {

0 commit comments

Comments
 (0)