Skip to content

Commit

Permalink
Feat: redux 폴더 구조 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
shinker1002 authored and LAIIonKING committed Nov 12, 2022
1 parent 5e1079b commit 1b3487f
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 1 deletion.
209 changes: 209 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@reduxjs/toolkit": "^1.9.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"node-sass": "^7.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",
"react-router-dom": "^6.4.3",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
Expand Down
6 changes: 5 additions & 1 deletion client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import { Provider } from 'react-redux';
import { store } from './redux/store';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<BrowserRouter>
<App />
<Provider store={store}>
<App />
</Provider>
</BrowserRouter>
</React.StrictMode>
);
5 changes: 5 additions & 0 deletions client/src/redux/store.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { configureStore } from '@reduxjs/toolkit';

export const store = configureStore({
reducer: {},
});

0 comments on commit 1b3487f

Please sign in to comment.