Clerk React SDK
The React SDK is built on top of the JavaScript SDK, and is the recommended method for integrating Clerk into your React application.
Custom hooks
The React SDK provides access to custom hooks that provide direct access to the Clerk
object, a user's User
object, and helper methods for authentication flows.
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 | Next.js SDK |
React Router | @clerk/clerk-react-router | React Router SDK |
Remix | @clerk/remix | Remix SDK |
Astro | @clerk/astro | Astro SDK |
Tanstack Start | @clerk/tanstack-start | Tanstack Start SDK |
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 setup guide. Then, follow the quickstart guide to set up the React SDK in your app.
Feedback
Last updated on