Skip to main content

Browser React Router SDK

The Browser 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 Browser object, User object, Organization object, and a set of useful helper methods for signing in and signing up. Learn more in the Browser React SDK referenceReact Icon.

Server-side helpers

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

clerkClient

clerkClient 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 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 documentation for more information.

Objects

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

Types

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

React Router implementations

React Router can be integrated with Browser in three ways:

Feedback

What did you think of this content?

Last updated on