File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -637,7 +637,8 @@ Let's create a file named `src/containers/Hello.tsx` and start off with the foll
637
637
import Hello from ' ../components/Hello' ;
638
638
import * as actions from ' ../actions/' ;
639
639
import { StoreState } from ' ../types/index' ;
640
- import { connect , Dispatch } from ' react-redux' ;
640
+ import { connect } from ' react-redux' ;
641
+ import { Dispatch } from ' redux' ;
641
642
```
642
643
643
644
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:
690
691
import Hello from ' ../components/Hello' ;
691
692
import * as actions from ' ../actions/' ;
692
693
import { StoreState } from ' ../types/index' ;
693
- import { connect , Dispatch } from ' react-redux' ;
694
+ import { connect } from ' react-redux' ;
695
+ import { Dispatch } from ' redux' ;
694
696
695
697
export function mapStateToProps({ enthusiasmLevel , languageName }: StoreState ) {
696
698
return {
You can’t perform that action at this time.
0 commit comments