We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb13f2c commit 938fe2bCopy full SHA for 938fe2b
examples/containers/TodoApp.js
@@ -4,21 +4,17 @@ import AddTodo from '../components/AddTodo';
4
import TodoList from '../components/TodoList';
5
import * as TodoActions from '../actions/TodoActions';
6
7
-function select(state) {
8
- return state.todos;
9
-}
10
-
11
export default class TodoApp {
12
render() {
13
return (
14
<Injector actions={TodoActions}
15
- select={select}>
+ select={state => state.todos}>
16
{this.renderChild}
17
</Injector>
18
);
19
}
20
21
- renderChild({ state, actions}) {
+ renderChild({ state, actions }) {
22
23
<div>
24
<AddTodo {...actions} />
0 commit comments