From 5d479d322b42d91eecfb6e33d912df143075a964 Mon Sep 17 00:00:00 2001 From: icechen Date: Mon, 28 Feb 2022 19:43:15 +0800 Subject: [PATCH] update --- package.json | 2 ++ src/store.ts | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 src/store.ts diff --git a/package.json b/package.json index dd6ca84..51cd30b 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "@emotion/styled": "^11.6.0", "@mui/icons-material": "^5.4.2", "@mui/material": "^5.4.2", + "@reduxjs/toolkit": "^1.8.0", "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", @@ -17,6 +18,7 @@ "mtproton": "6.0.0", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-redux": "^7.2.6", "react-router-dom": "^6.2.1", "react-scripts": "5.0.0", "typescript": "^4.5.5", diff --git a/src/store.ts b/src/store.ts new file mode 100644 index 0000000..f8c274f --- /dev/null +++ b/src/store.ts @@ -0,0 +1,7 @@ +import { configureStore } from "@reduxjs/toolkit"; + +export default configureStore({ + reducer: { + user: (state) => {}, + }, +});