Skip to content

Instantly share code, notes, and snippets.

@jks8787

jks8787/index.js Secret

Last active May 11, 2018 00:54
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 jks8787/753111d64e1b7260636cce7c0e51dd7c to your computer and use it in GitHub Desktop.
Save jks8787/753111d64e1b7260636cce7c0e51dd7c to your computer and use it in GitHub Desktop.
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
Copy link

codepb commented Aug 19, 2017

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

@milosbunijevac
Copy link

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