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 { applyMiddleware, compose } from 'redux';
|
||||
import { configureStore } from '@reduxjs/toolkit'
|
||||
import reduxThunk from 'redux-thunk';
|
||||
import {thunk} from 'redux-thunk';
|
||||
|
||||
import App from './components/App';
|
||||
import reducers from './reducers';
|
||||
|
||||
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');
|
||||
|
||||
createRoot(container).render(
|
||||
|
|
|
|||
Loading…
Reference in New Issue