网页
综合
更新时间 2026-11-14 08:48:47
useId - Kube Design
自动蜘蛛
kube.design
正文约 401 字
useId generates a random ID that persists during rendering. Hooks are typically used to bind input elements to tags. The generated random id is saved into the ref and will not change unless the component is unloaded.
The useId hook accepts two parameters:
Hook returns a string value, which can be either "id" (if the first argument is passed) or a random id generated using the "generateId" function.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。