useClerk()
The useClerk() hook provides access to the Clerk object, giving you the ability to build alternatives to any Clerk Component.
useClerk() 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
import { useClerk } from "@clerk/clerk-react";
export default function Home() {
const clerk = useClerk();
return <button onClick={() => clerk.openSignIn({})}>Sign in</button>;
};