Skip to main content
Docs

Clerk React Router SDK

The Clerk React Router SDK gives you access to prebuilt components, React hooks, and helpers to make user authentication easier. Refer to the quickstart guideReact Router Icon to get started.

Client-side helpers

Because the React Router SDK is built on top of the React SDKReact Icon, you can use the hooks that the React SDK provides. These hooks include access to the Clerk object, User object, Organization object, and a set of useful helper methods for signing in and signing up. Learn more in the Clerk React SDK referenceReact Icon.

Server-side helpers

The following references show how to integrate Clerk features into applications using React Router server functions and API routes.

Objects

Learn about the key Clerk objects that power many of Clerk's SDKs.

Types

See the reference docs on types to get more information about the different types available for typing your application.

clerkClient()

Clerk's JS Backend SDKClerk Icon is a wrapper around the Backend API that makes it easier to interact with the API. For example, to retrieve a list of all users in your application, you can use the users.getUserList() method from the JS Backend SDK instead of manually making a fetch request to the https://api.clerk.com/v1/users endpoint.

To access a resource, you must first instantiate a clerkClient instance. See the reference documentationClerk Icon for more information.

React Router implementations

React Router can be integrated with Clerk in three ways:

Feedback

What did you think of this content?

Last updated on