diff --git a/packages/core/README.md b/packages/core/README.md index 02fc2aa87f15..3d9458ce4e3e 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -52,12 +52,13 @@ The [AI SDK UI](https://sdk.vercel.ai/docs/ai-sdk-ui/overview) module provides a ###### @/app/page.tsx (Next.js App Router) ```tsx -"use client" +'use client'; -import { useChat } from 'ai/react' +import { useChat } from 'ai/react'; export default function Page() { - const { messages, input, handleSubmit, handleInputChange, isLoading } = useChat() + const { messages, input, handleSubmit, handleInputChange, isLoading } = + useChat(); return (
@@ -66,7 +67,7 @@ export default function Page() {
{message.role}
{message.content}
- )} + ))}
- ) + ); } ```