Skip to content

Instantly share code, notes, and snippets.

@arifkoken
Created October 19, 2017 09:58
Show Gist options
  • Save arifkoken/2cdccc6b0fe67cbc5a4801502ec70e54 to your computer and use it in GitHub Desktop.
Save arifkoken/2cdccc6b0fe67cbc5a4801502ec70e54 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
import reducers from './reducers';
import Islem from './components/Islem';
class Main extends Component {
render() {
const store = createStore(reducers, {}, applyMiddleware(ReduxThunk));
return (
<Provider store={store}>
<Islem />
</Provider>
);
}
}
export default Main;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment