Skip to content

Instantly share code, notes, and snippets.

@jks8787 jks8787/index.js Secret
Last active May 11, 2018

Embed
What would you like to do?
index.js -- Medium Article gist
import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore';
import SomeComponent from './components/SomeComponent/SomeComponent';
import './styles/styles.css';
const store = configureStore();
render(
<Provider store={store}>
<SomeComponent />
</Provider>,
document.getElementById('app')
);
@codepb

This comment has been minimized.

Copy link

commented Aug 19, 2017

You missed a line in this example. You don't import Provider from react-redux in your imports.

@milosbunijevac

This comment has been minimized.

Copy link

commented May 11, 2018

Thanks codepb, I was wondering what was wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.