18 |
19 |
20 |
21 | {children}
22 |
23 |
24 | )
25 | }
26 | }
27 |
28 | function mapStateToProps(state) {
29 | return {
30 | todos: state.todos
31 | }
32 | }
33 |
34 | function mapDispatchToProps(dispatch) {
35 | return {
36 | actions: bindActionCreators(TodoActions, dispatch)
37 | }
38 | }
39 |
40 | export default connect(
41 | mapStateToProps,
42 | mapDispatchToProps
43 | )(App)
44 |
--------------------------------------------------------------------------------
/client/containers/App/style.js:
--------------------------------------------------------------------------------
1 | export default {
2 | normal: {
3 | background: '#fff',
4 | margin: '200px 0 40px 0',
5 | position: 'relative',
6 | boxShadow: '0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1)',
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/client/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |