diff --git a/README.md b/README.md index 0793532..943801a 100644 --- a/README.md +++ b/README.md @@ -637,7 +637,8 @@ Let's create a file named `src/containers/Hello.tsx` and start off with the foll import Hello from '../components/Hello'; import * as actions from '../actions/'; import { StoreState } from '../types/index'; -import { connect, Dispatch } from 'react-redux'; +import { connect } from 'react-redux; +import { Dispatch } from 'redux'; ``` The real two key pieces here are the original `Hello` component as well as the `connect` function from react-redux. @@ -718,8 +719,9 @@ To put this all together, we need to create a store with an initial state, and s import { createStore } from 'redux'; import { enthusiasm } from './reducers/index'; import { StoreState } from './types/index'; +import { EnthusiasmAction } from './actions/index';\ -const store = createStore(enthusiasm, { +const store = createStore(enthusiasm, { enthusiasmLevel: 1, languageName: 'TypeScript', });