Clerk React SDK
The Clerk React SDK is built on top of the and gives you access to prebuilt components, hooks, and helpers to make user authentication easier. Refer to the to get started.
Custom hooks
The React SDK provides hooks that include access to the object, , , and a set of useful helper methods for signing in and signing up.
useUser()
useClerk()
useAuth()
useSignIn()
useSignUp()
useSession()
useSessionList()
useOrganization()
useOrganizationList()
Framework-specific SDKs
Clerk offers framework-specific SDKs that are customized to provide the better developer experience and integration with each framework's features. Choose the appropriate SDK based on your framework:
Framework | Package | Docs |
---|---|---|
Next.js | @clerk/nextjs | |
React Router | @clerk/react-router | |
Remix | @clerk/remix | |
Astro | @clerk/astro | |
Tanstack React Start | @clerk/tanstack-react-start |
Set up Clerk React
Before you can add Clerk to your React application, you must create a Clerk app in the Clerk Dashboard. To get started, follow the . Then, follow the to set up the React SDK in your app.
Feedback
Last updated on