Skip to content

Commit

Permalink
Merge pull request mocheng#25 from mocheng/bug/fix-issue-23
Browse files Browse the repository at this point in the history
fix issue mocheng#23
  • Loading branch information
mocheng authored Jun 26, 2017
2 parents ef299d4 + d44962d commit 831a1e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter-03/redux_with_context/src/views/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react';

class Summary extends Component {
render() {
const sum = this.state.sum;
const sum = this.props.sum;
return (
<div>Total Count: {sum}</div>
);
Expand Down Expand Up @@ -54,7 +54,7 @@ class SummaryContainer extends Component {
render() {
const sum = this.state.sum;
return (
<div>Total Count: {sum}</div>
<Summary sum={sum} />
);
}
}
Expand Down

0 comments on commit 831a1e4

Please sign in to comment.