Download Amazon-clone/src/store.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-clone/src/store.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-clone/src/store.js
-
curl -L -o store.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-clone/src/store.js
389 Bytes
| import rootReducer from './reducer/reducer' | |
| // creating a store | |
| import { createStore } from "redux"; | |
| // adding the combined reducers into the store | |
| // PS: the 2nd argument is just for Redux Devtool Extension, it has nothing to do with the concept | |
| const store = createStore(rootReducer ,window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()) | |
| export default store |