Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created October 6, 2018 10:56
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 productioncoder/9255891c7cde6fa74a5eee4cb35514d9 to your computer and use it in GitHub Desktop.
Save productioncoder/9255891c7cde6fa74a5eee4cb35514d9 to your computer and use it in GitHub Desktop.
Youtube app: Plugging in Redux into React app
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import 'semantic-ui-css/semantic.min.css';
import { Provider } from 'react-redux';
import {BrowserRouter} from 'react-router-dom';
import {configureStore} from './store/configureStore';
const store = configureStore();
ReactDOM.render(
<Provider store={store}>
<BrowserRouter>
<App/>
</BrowserRouter>
</Provider>, document.getElementById('root'));
registerServiceWorker();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment