Skip to content

Commit fde60f2

Browse files
boilerplate redux configuration & store setup
1 parent 9d7d1b4 commit fde60f2

File tree

8 files changed

+331
-1
lines changed

8 files changed

+331
-1
lines changed

package-lock.json

Lines changed: 198 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
"private": true,
55
"dependencies": {
66
"@ant-design/icons": "^4.7.0",
7+
"@redux-devtools/extension": "^3.2.3",
78
"@testing-library/jest-dom": "^5.16.5",
89
"@testing-library/react": "^13.3.0",
910
"@testing-library/user-event": "^13.5.0",
1011
"antd": "^4.22.5",
1112
"axios": "^0.27.2",
1213
"react": "^18.2.0",
1314
"react-dom": "^18.2.0",
15+
"react-redux": "^8.0.2",
1416
"react-router-dom": "^6.3.0",
1517
"react-scripts": "5.0.1",
18+
"redux": "^4.2.0",
19+
"redux-thunk": "^2.4.1",
1620
"web-vitals": "^2.1.4"
1721
},
1822
"scripts": {

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import 'antd/dist/antd.min.css';
22
import React from 'react';
33
import ReactDOM from 'react-dom/client';
4+
import { Provider } from 'react-redux';
45
import App from './App';
6+
import store from './redux/store';
57
import reportWebVitals from './reportWebVitals';
68
import './styles.css';
79

810
const root = ReactDOM.createRoot(document.getElementById('root'));
911
root.render(
1012
<React.StrictMode>
11-
<App />
13+
<Provider store={store}>
14+
<App />
15+
</Provider>
1216
</React.StrictMode>
1317
);
1418

0 commit comments

Comments
 (0)