Skip to main content
The useFetchPrizes hook is used to fetch and return a list of prizes from the UseAwards API. It takes no arguments and returns an array with two values: an array of prizes and a boolean indicating whether the prizes are still being loaded.

Usage

Here’s an example of how to use the useFetchPrizes hook in a React component: