yuvrajkarna2717/react-hook-granth

[Feature]: Add useGeolocation hook

开放

#9 创建于 2025年12月6日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (1 个派生)auto 404
enhancementgood first issuehelp wanted

仓库指标

星标
 (3 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南