Fixed import bug
This commit is contained in:
parent
2cfb2a541c
commit
c1e331e2c8
|
|
@ -3,13 +3,13 @@ import { createRoot } from 'react-dom/client';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import { applyMiddleware, compose } from 'redux';
|
import { applyMiddleware, compose } from 'redux';
|
||||||
import { configureStore } from '@reduxjs/toolkit'
|
import { configureStore } from '@reduxjs/toolkit'
|
||||||
import reduxThunk from 'redux-thunk';
|
import {thunk} from 'redux-thunk';
|
||||||
|
|
||||||
import App from './components/App';
|
import App from './components/App';
|
||||||
import reducers from './reducers';
|
import reducers from './reducers';
|
||||||
|
|
||||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
||||||
const store = configureStore({reducer: reducers}, composeEnhancers(applyMiddleware(reduxThunk)));
|
const store = configureStore({reducer: reducers}, composeEnhancers(applyMiddleware(thunk)));
|
||||||
const container = document.getElementById('root');
|
const container = document.getElementById('root');
|
||||||
|
|
||||||
createRoot(container).render(
|
createRoot(container).render(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue