Skip to content

Commit

Permalink
TodoMVC: Short Connector explanation and link
Browse files Browse the repository at this point in the history
Also see: reduxjs#397
  • Loading branch information
peteruithoven committed Aug 5, 2015
1 parent 2a08009 commit f9adc6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/todomvc/containers/TodoApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Component {
render() {
return (
// Connector subscribes children to a selection of app state. Also see:
// http://gaearon.github.io/redux/docs/basics/UsageWithReact.html#connecting-to-redux
<Connector select={state => ({ todos: state.todos })}>
{this.renderChild}
</Connector>
Expand Down

0 comments on commit f9adc6f

Please sign in to comment.