(id?: string)
| 8 | * Useful when accepting an optional `id` as a prop in a component. |
| 9 | */ |
| 10 | export function useId(id?: string): string { |
| 11 | const uniqueId = useReactId() |
| 12 | if (id) { |
| 13 | return id |
| 14 | } |
| 15 | return uniqueId |
| 16 | } |
no outgoing calls
no test coverage detected