yuvrajkarna2717/react-hook-granth

[Docs]: Add JSDoc documentation to all hooks

Offen

#5 geöffnet am 06.12.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1 Fork)auto 404
documentationenhancementhelp wanted

Repository-Metriken

Stars
 (3 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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
}

Contributor Guide