yuvrajkarna2717/react-hook-granth

[Feature]: Add useGeolocation hook

Offen

#9 geöffnet am 06.12.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1 Fork)auto 404
enhancementgood first issuehelp wanted

Repository-Metriken

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

Beschreibung

Description: Create a hook for accessing browser geolocation API with proper error handling and loading states.

Requirements:

  • Get current position
  • Watch position changes
  • Handle permissions and errors
  • Loading states

API Proposal:

const { position, error, loading, getCurrentPosition } = useGeolocation();

Contributor Guide