-
-
Save jks8787/753111d64e1b7260636cce7c0e51dd7c to your computer and use it in GitHub Desktop.
index.js -- Medium Article gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | |
); |
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 missed a line in this example. You don't import Provider from react-redux in your imports.