react-router
-
10. React/Jwt 연동 (access token, refresh token)Project/React+Java 2022. 8. 19. 18:15
https://github.com/dchkang83/project-board GitHub - dchkang83/project-board Contribute to dchkang83/project-board development by creating an account on GitHub. github.com 아래와 같이 jwt의 access token 및 refresh token을 활용한 인증까지 설정한다. https://dchkang83.tistory.com/42 React/Jwt 연동 (access token, refresh token) https://github.com/dchkang83/project-board GitHub - dchkang83/project-board Contribute to dchk..
-
React/Jwt 연동 (access token, refresh token)Language/React 2022. 8. 10. 23:34
https://github.com/dchkang83/project-board GitHub - dchkang83/project-board Contribute to dchkang83/project-board development by creating an account on GitHub. github.com redux-saga 및 axios도 활용해 보려다가 기본에 충실하고 너무 복잡하지 않기위해서 패스!! (이부분은 나중에라도 충분이 넣을수 있으니!) - access token 탈취 위험이 있어 Redux를 이용하여 store에 저장 - refresh token : 유효기간까지 설정할수 있는 localstorage가 아닌 Cookie에 저장 - refresh token을 통하여 refresh token 및..
-
React/redux & react-redux & redux-saga & etcLanguage/React 2022. 8. 4. 13:06
1. redux & react-redux & redux-saga 등 설치 $ yarn add react-router-dom $ yarn add redux react-redux redux-saga $ yarn add @reduxjs/toolkit query-string axios $ yarn add ramda 2. 주요소스 2.1 index.js import React from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter as Router } from "react-router-dom"; import { Provider } from 'react-redux'; import store from '~/store' import ..
-
React/router & LayoutLanguage/React 2022. 8. 4. 11:49
1. react-router $ yarn add react-router-dom 2. 주요소스 정리 - index.js import React from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter as Router } from "react-router-dom"; import App from '~/App' const root = ReactDOM.createRoot(document.getElementById("root")); root.render( ); - app.js import React from 'react'; import RootRoutes from '~/routes/RootRoutes'; const App = () ..