Created
June 9, 2020 20:05
-
-
Save marshallmurphy/bc456798bb96efdf8f80a9381bf187b2 to your computer and use it in GitHub Desktop.
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
// index.js | |
import React from 'react' | |
import { render } from 'react-dom' | |
import { configureStore } from '@reduxjs/toolkit' | |
import { Provider } from 'react-redux' | |
import App from './App' | |
import rootReducer from './slices' | |
import './index.css' | |
const store = configureStore({ reducer: rootReducer }) | |
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