From 47604ef99296bc7afffcaad4d572ef5b9aa537ea Mon Sep 17 00:00:00 2001 From: Martin Snyder Date: Tue, 9 Apr 2019 08:54:26 -0400 Subject: [PATCH 1/2] Update Dispatch import (in containers/Hello.tsx) This export changed recently. See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/26840 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0793532..d7c8055 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. From 8b112afe040f37cc747522a28967bf0f24282f4f Mon Sep 17 00:00:00 2001 From: Martin Snyder Date: Tue, 9 Apr 2019 09:02:17 -0400 Subject: [PATCH 2/2] Update createStore invocation for redux 4.0.0 Ref: https://github.com/Microsoft/TypeScript-React-Starter/issues/136 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d7c8055..943801a 100644 --- a/README.md +++ b/README.md @@ -719,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', });