react-hot-toast
실험 환경: Next js 13 with TS // node 18.14.0
react-hot-toast는 useEffect()를 사용한다. 따라서 사용하고자 하는 파일의 맨 윗줄에 'use client’를 작성하여 클라이언트 컴포넌트임을 알려야한다.


SweetAlert
react-query
react에서 client의 state를 관리할 순 있어도 server side의 state를 관리하기란 까다롭다.
캐싱, 최신 데이터인지 확인, 중복 요청 방지 등등 신경 써야 할 일들이 많기 때문이다.
React-query는 이러한 어려움을 해결하게 도와준다.
- Help you remove many lines of complicated and misunderstood code from your application and replace with just a handful of lines of React Query logic.
- Make your application more maintainable and easier to build new features without worrying about wiring up new server state data sources
- Have a direct impact on your end-users by making your application feel faster and more responsive than ever before.
- Potentially help you save on bandwidth and increase memory performance
Install