yuvrajkarna2717/react-hook-granth

[Feature]: Add useGeolocation hook

オープン

#9 opened on 2025/12/06

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1 件のフォーク)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (3 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド