Download client/src/store/configureStore.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/store/configureStore.js
- Command line
-
hf download hf://spaces/linuxrun/deer/client/src/store/configureStore.js
-
curl -L -o configureStore.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/store/configureStore.js
433 Bytes
| import { createStore, applyMiddleware, compose } from 'redux'; | |
| import thunk from 'redux-thunk'; | |
| import rootReducer from '../reducers'; | |
| const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
| export default function configureStore(preloadedState) { | |
| const middlewares = [thunk]; | |
| const store = createStore(rootReducer, preloadedState, composeEnhancers(applyMiddleware(...middlewares))); | |
| return store; | |
| } | |