docs: update documentation for custom data-fetching hooks

This commit is contained in:
Aaron William Po
2023-12-03 03:05:34 -05:00
parent c5b7cb5a43
commit 0353f82c20
21 changed files with 115 additions and 89 deletions

View File

@@ -5,8 +5,7 @@ import useSWR from 'swr';
import { z } from 'zod';
/**
* A custom React hook that checks if the current user has liked a beer style by fetching
* data from the server.
* A custom hook to check if the current user has liked a beer style.
*
* @param beerStyleId The ID of the beer style to check for likes.
* @returns An object with the following properties: