useClerk()
The useClerk()
hook provides access to the Clerk
object, allowing you to build alternatives to any Clerk Component.
Returns
The useClerk()
hook returns the Clerk
object, which includes all the methods and properties listed in the Clerk
reference.
How to use the useClerk()
hook
The following example uses the useClerk()
hook to access the clerk
object. The clerk
object is used to call the openSignIn()
method to open the sign-in modal.
Feedback
Last updated on