Course lesson
Extract React Query useQuery into custom hooks
useQuery follows the rules of hooks. You can wrap it in a custom hook for convenience if you want to layer in some additional functionality.
- Duration
- 1 min
- Access
- Included
- Transcript
- Retained from source evidence
useQuery follows the rules of hooks. You can wrap it in a custom hook for convenience if you want to layer in some additional functionality.