Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created June 9, 2020 20:05
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 marshallmurphy/bc456798bb96efdf8f80a9381bf187b2 to your computer and use it in GitHub Desktop.
Save marshallmurphy/bc456798bb96efdf8f80a9381bf187b2 to your computer and use it in GitHub Desktop.
// 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