<RedirectToSignUp />

Navigate to the sign up URL.


Rendering a <RedirectToSignUp/> component will navigate to the sign up URL which has been configured in your application instance. You can find the configuration in the Clerk Dashboard. Go to your application, select your instance, then go to Settings > URL & redirects.

The behavior will be just like a server-side (3xx) redirect, and will override the current location in the history stack.


Make sure you've followed the installation guide for Clerk React before running the snippets below.

The example below shows a page which is normally accessible by authenticated users. All other visitors (unauthenticated requests) will get redirected to the sign up page.

The <SignedIn/> and <SignedOut/> components work together as a conditional, allowing the <RedirectToSignUp/> component to be rendered only for unauthenticated requests.

Clerk React
Clerk React
import {
} from "@clerk/clerk-react";
function PrivatePage() {
return (
<ClerkProvider frontendApi="clerk.[your-domain].com">
Content that is displayed to signed in
Non-authenticated visitors will be redirected
to the sign up page.
<RedirectToSignUp />


This component accepts no props.