yuvrajkarna2717/react-hook-granth
[Docs]: Add JSDoc documentation to all hooks
Aperta
#5 aperta il 6 dic 2025
documentationenhancementhelp wanted
Metriche repository
- Star
- (3 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Description: Add comprehensive JSDoc comments to all existing hooks for better IntelliSense and developer experience.
Requirements:
- Add JSDoc comments to all hook functions
- Include parameter descriptions
- Include return value descriptions
- Add usage examples in comments
Example:
/**
* A hook that manages counter state with increment, decrement, and reset functionality.
*
* @param initialValue - The initial counter value (default: 0)
* @returns An object containing the current count and control functions
*
* @example
* ```tsx
* const { count, increment, decrement, reset } = useCounter(10);
* ```
*/
export default function useCounter(initialValue: number = 0) {
// implementation
}