Function getId

  • Get a stable ID string which is safe to use as a CSS identifier.

    const id = getId('namespace');

    Note: When process.env.NODE_ENV is "test" (eg. during Jest testing), this function returns a stable value for the given display name. This value is NOT unique per invocation like it would be at runtime.


    • namespace: string

    Returns string

Generated using TypeDoc