+ ```tsx title="app/page.tsx"
+ 'use client'
+
+ import { Authenticated, Unauthenticated } from 'convex/react'
+ import { SignInButton, UserButton } from '@clerk/nextjs'
+ import { useQuery } from 'convex/react'
+ import { api } from '../convex/_generated/api'
+
+ export default function Home() {
+ return (
+ <>
+
+
+
+
+
+
+
+ >
+ )
+ }
+
+ function Content() {
+ const messages = useQuery(api.messages.getForCurrentUser)
+ return Authenticated content: {messages?.length}
+ }
+ ```
+
+
+