Front/React

[React] useQuery 사용방법

AlexHouse 2023. 4. 13. 10:20
728x90

useQuery is a React Hook provided by the react-query library,

which allows for easy and efficient data fetching and caching.

 

useQuery 는 리액트 훅 인데, 라이브러리 이고, 쉽고 효과적으로 데이터를 보내고, 저장 할 수 있는 녀석이다.

 

useQuery automatically handles data caching and provides a range of other features, such as automatic refetching of data on mount or on specified intervals, polling for new data, and more.

 

use query 는 자동적으로 데이터를 캐싱하고, 다른 속성에 제공한다. 자동 데이터의 자동 재송신이나, 

지정된 간격으로 새로운 데이터를 조사한다.  


 

 

728x90