useSharedSafeId
See source codeReact's useId hook returns a unique id for the component. However, it uses a colon in the id, which is not valid for CSS selectors. This hook replaces the colon with an underscore.
function useSharedSafeId(id: string): SafeId
Parameters
Name | Description |
---|---|
|
|
Returns
Prev
useSelectionEventsNext
useSvgExportContext