From 371949253e92f361313332de361029127b9b9de2 Mon Sep 17 00:00:00 2001 From: nasdan Date: Thu, 13 Sep 2018 00:11:41 +0200 Subject: [PATCH] Fix readme sample 02 --- 01_ES6/02_redux_sync_action/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/01_ES6/02_redux_sync_action/README.md b/01_ES6/02_redux_sync_action/README.md index 399e88f..fde3f91 100644 --- a/01_ES6/02_redux_sync_action/README.md +++ b/01_ES6/02_redux_sync_action/README.md @@ -53,6 +53,7 @@ _./src/common/index.js_ ```diff export * from './sessionProvider'; +export * from './card-layout.component'; + export * from './actionIds'; ``` @@ -79,7 +80,7 @@ _./src/reducers/session-info.js_ const defaultState = () => ({ nickname: '', - channel: '', + room: '', }); export const sessionInfoReducer = (state = defaultState(), action) => { @@ -176,7 +177,7 @@ _./src/pages/chat/chat.container.jsx_ + const ChatContainerReact = ChatContainerInner; ``` -- Let's add the _import_ to reference _connect_ from _reactredux_ +- Let's add the _import_ to reference _connect_ from _react-redux_ ```diff import React from 'react'; @@ -197,7 +198,7 @@ _./src/pages/chat/chat.container.js_ + + const mapDispatchToProps = (dispatch) => ({ + }); -+ export const LobbyContainer = connect( ++ export const ChatContainer = connect( + mapStateToProps, + mapDispatchToProps, + )(ChatContainerReact); @@ -240,6 +241,7 @@ _./common/index.js_ ```diff - export * from './sessionProvider'; +export * from './card-layout.component'; export * from './actionIds'; ```