Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions 01_ES6/02_redux_sync_action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ _./src/common/index.js_

```diff
export * from './sessionProvider';
export * from './card-layout.component';
+ export * from './actionIds';
```

Expand All @@ -79,7 +80,7 @@ _./src/reducers/session-info.js_

const defaultState = () => ({
nickname: '',
channel: '',
room: '',
});

export const sessionInfoReducer = (state = defaultState(), action) => {
Expand Down Expand Up @@ -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';
Expand All @@ -197,7 +198,7 @@ _./src/pages/chat/chat.container.js_
+
+ const mapDispatchToProps = (dispatch) => ({
+ });
+ export const LobbyContainer = connect(
+ export const ChatContainer = connect(
+ mapStateToProps,
+ mapDispatchToProps,
+ )(ChatContainerReact);
Expand Down Expand Up @@ -240,6 +241,7 @@ _./common/index.js_

```diff
- export * from './sessionProvider';
export * from './card-layout.component';
export * from './actionIds';
```

Expand Down