본문 바로가기

Hanghae99

220119 TIL 실전프로젝트 3주차

그동안 했던 작업 정리... 상세한 정리는 나중에... ㅠㅠ

 

타입스크립트에서 jwt decoder 사용하기
https://stackoverflow.com/questions/61199530/typescript-error-with-accessing-jwt-decode-object

 

Typescript error with accessing jwt-decode object

I have installed @types/jwt-decode and I'm having trouble getting this to work. import jwtDecode from 'jwt-decode' ... let decodedToken = jwtDecode(token); console.log(decodedToken) // this works...

stackoverflow.com

 

프론트에서 소셜 로그인 처리하기

https://velog.io/@yaytomato/%ED%94%84%EB%A1%A0%ED%8A%B8%EC%97%90%EC%84%9C-%EC%95%88%EC%A0%84%ED%95%98%EA%B2%8C-%EB%A1%9C%EA%B7%B8%EC%9D%B8-%EC%B2%98%EB%A6%AC%ED%95%98%EA%B8%B0

 

🍪 프론트에서 안전하게 로그인 처리하기 (ft. React)

localStorage냐 쿠키냐 그것이 문제로다

velog.io

 

cors error 임시방편으로 해결하기

https://ducks228.tistory.com/entry/%ED%81%AC%EB%A1%AC-%EB%B8%8C%EB%9D%BC%EC%9A%B0%EC%A0%80-cors-disableenable

 

크롬 브라우저 cors disable/enable

window 대상인풋창에 --disable-web-security --user-data-dir="C:\chrome" 윈도우도 새창이 뜨면서 즐겨찾기가 초기화 될것이다. 원복은 반대로 추가해주면 될것이다. --profile-directory=Default --enable-web-security mac

ducks228.tistory.com

 

recoil 200% 활용하기

https://velog.io/@juno7803/Recoil-Recoil-200-%ED%99%9C%EC%9A%A9%ED%95%98%EA%B8%B0#4%EF%B8%8F%E2%83%A3---selector-%EC%99%80-%EB%B9%84%EB%8F%99%EA%B8%B0-%EC%B2%98%EB%A6%ACsuspense-loadable

 

[Recoil] Recoil 200% 활용하기

아무리 구글링해도 Recoil 기본 예제밖에 나오지 않아 직접 작성한 Recoil 200% 활용법 🙃

velog.io

 

디버깅

Warning: Cannot update a component (BrowserRouter) while rendering a different component (PinNumberInputPage). To locate the bad setState() call inside PinNumberInputPage

https://github.com/facebook/react/issues/18178

 

Bug: too hard to fix "Cannot update a component from inside the function body of a different component." · Issue #18178 · face

Note: React 16.13.1 fixed some cases where this was overfiring. If upgrading React and ReactDOM to 16.13.1 doesn't fix the warning, read this: #18178 (comment) React version: 16.13.0 Steps To R...

github.com