Skip to main content
Docs

Clerk React SDK

The Clerk React SDK is built on top of the JavaScript SDKJavaScript Icon and gives you access to prebuilt components, hooks, and helpers to make user authentication easier. Refer to the quickstart guide to get started.

Custom hooks

The React SDK provides hooks that include access to the ClerkJavaScript Icon object, User objectJavaScript Icon, Organization objectJavaScript Icon, and a set of useful helper methods for signing in and signing up.

Framework-specific SDKs

Important

Clerk provides optimized SDKs for specific React frameworks. If you're using one of the supported frameworks below, you should use its dedicated SDK instead of @clerk/clerk-react.

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:

FrameworkPackageDocs
Next.js@clerk/nextjsNext.js SDKNext.js Icon
React Router@clerk/react-routerReact Router SDKReact Router Icon
Remix@clerk/remixRemix SDKRemix Icon
Astro@clerk/astroAstro SDKAstro Icon
Tanstack React Start@clerk/tanstack-react-startTanstack React Start SDKTanstack Start Icon

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

What did you think of this content?

Last updated on