Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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 })
<Provider store={store}>
<App />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment