Skip to content

Instantly share code, notes, and snippets.

@maximiliangonzalez
Created July 24, 2019 18:50
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 maximiliangonzalez/b18cd27b02794b65963432eb4a50ed2f to your computer and use it in GitHub Desktop.
Save maximiliangonzalez/b18cd27b02794b65963432eb4a50ed2f to your computer and use it in GitHub Desktop.
The top layer of our React app, wrapped in a Provider so we can access the counter in our Redux store.
import React from 'react';
import {render} from 'react-dom';
import App from './components/App.jsx';
import {Provider} from 'react-redux';
import store from './reducers/counterReducer';
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment