项目介绍

thearnica/react-uid 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 302 个 Star、13 次 Fork。

仓库全名
thearnica/react-uid

README 摘要

UID To generate a stable UID/Key for a given item, consistently between client and server, in 900 bytes. ⚠️ SSR: Not compatible with Strict or Concurent mode. Consider using native useId(React 18) hook instead. If your clientside is using StrictMode it will never match SSR-ed Ids due to double invocation Example - https://codesandbox.io/s/kkmwr6vv47 API React UID provides 3 different APIs vanilla js API - uid(item)…

完整内容见 GitHub 原始 README 或本页 。

常见问题

react-uid 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 302 个 Star。

react-uid 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 react-uid 的源码?

可以直接克隆仓库:git clone https://github.com/thearnica/react-uid.git,默认分支为 master;安装与运行步骤见仓库 README。

react-uid 最近还在维护吗?

仓库最近一次更新为 2025年1月11日,当前有 26 个未关闭 Issue;Star 数为 302,可作为社区活跃度的参考。

关于

Render-less container for generating UID for a11y, consistent react key, and any other good reason 🦄

描述来自项目方在 GitHub 上的公开说明,中文内容由 GitRead 中文社区 整理。

简要分析

热度分
331
价值分
184
活跃状态
活跃

语言占比

HTML
JavaScript
Shell
TypeScript

Release