yuvrajkarna2717/react-hook-granth

[Feature]: Add useGeolocation hook

Ouverte

#9 ouverte le 6 déc. 2025

 (0 commentaire) (0 réaction) (0 personne assignée)JavaScript (1 fork)auto 404
enhancementgood first issuehelp wanted

Métriques du dépôt

Stars
 (3 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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();

Guide contributeur