SKILL19.7K installs89

Clerk React Patterns

React SPA auth patterns with @clerk/react for Vite/CRA - ClerkProvider setup, useAuth/useUser/useClerk hooks, React Router protected routes, custom sign-in flows. Triggers on: Vite Clerk setup, React Router auth, useAuth hook, protected route, custom sign-in form React.

Type
Skill
Author
clerk
Category
Frontend
GitHub stars
89
Installs
19.7K
Last updated
October 30, 2026

Install

npx skills add https://github.com/clerk/skills --skill clerk-react-patterns

Use cases


Frequently Asked Questions

Which React setups does this skill target?

React SPAs using @clerk/react with Vite or CRA.

Which hooks does it cover?

useAuth, useUser, and useClerk.

Can it help with protected routes?

Yes, React Router protected routes are one of the covered patterns, along with custom sign-in flows.


About this skill

React SPA auth patterns for @clerk/react, covering ClerkProvider setup, the useAuth, useUser, and useClerk hooks, React Router protected routes, and custom sign-in flows. Use it with Vite or CRA projects that need client-side authentication wired up. Triggers include Vite Clerk setup, protected route configuration, and custom React sign-in forms.

Summary written with AI assistance from the project's public description.


Categories


More from clerk


Similar Skills