Skip to content

Commit 938fe2b

Browse files
committed
Tweak for readability
1 parent cb13f2c commit 938fe2b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

examples/containers/TodoApp.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@ import AddTodo from '../components/AddTodo';
44
import TodoList from '../components/TodoList';
55
import * as TodoActions from '../actions/TodoActions';
66

7-
function select(state) {
8-
return state.todos;
9-
}
10-
117
export default class TodoApp {
128
render() {
139
return (
1410
<Injector actions={TodoActions}
15-
select={select}>
11+
select={state => state.todos}>
1612
{this.renderChild}
1713
</Injector>
1814
);
1915
}
2016

21-
renderChild({ state, actions}) {
17+
renderChild({ state, actions }) {
2218
return (
2319
<div>
2420
<AddTodo {...actions} />

0 commit comments

Comments
 (0)