yuvrajkarna2717/react-hook-granth

[Feature]: Add useGeolocation hook

Aperta

#9 aperta il 6 dic 2025

 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (1 fork)auto 404
enhancementgood first issuehelp wanted

Metriche repository

Star
 (3 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor