Last active
September 5, 2016 13:45
-
-
Save raysrashmi/708b94234aa94b3f2fa9106994e61c78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; | |
import Provider from 'react-redux'; | |
import thunk from 'redux-thunk'; | |
import TodoList from '../containers/TodoList'; | |
import reducers from '../reducers'; | |
import init from '../actions/ListActions'; | |
class TodoAppClinet extends Component { | |
constructor(props) { | |
super(props); | |
this.store = createStore( reducers); | |
} | |
render(){ | |
const props = this.props; | |
return( | |
<Provider store={this.store}> | |
<TodoList {...props} /> | |
</Provider> | |
); | |
} | |
} | |
export default TodoAppClinet; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment