Skip to content

Instantly share code, notes, and snippets.

@raysrashmi
Last active September 5, 2016 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raysrashmi/708b94234aa94b3f2fa9106994e61c78 to your computer and use it in GitHub Desktop.
Save raysrashmi/708b94234aa94b3f2fa9106994e61c78 to your computer and use it in GitHub Desktop.
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