Examples
Explore advanced patterns and techniques using Clerk with Next.js and React 19 features.
New Documentation
React 19 Features + Clerk
Comprehensive guide to React 19 and 19.2 features with Clerk integration examples. Learn about React Compiler, Actions, useOptimistic, View Transitions, and more.
Explore Features
Partial Hydration
Demonstrate React 19's partial hydration capabilities with interactive components that hydrate independently.
View Example
Cached Components
Learn how to use React's cache() function with Clerk's server-side authentication to optimize performance and reduce redundant API calls.
View Example
Cached Components Bug Repro
Minimal reproduction of the cacheComponents suspense bug discussed in Clerk PR #7119.
View Example
PPR Nonce Isolation Test
Verifies that Clerk nonce fetching is isolated into a Suspense-wrapped DynamicClerkScripts component, allowing cacheComponents pages to mix cached and dynamic content.
View Example