Skip to content

Commit

Permalink
fix (docs): fix packages/core readme typos (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
suemor233 authored Jul 15, 2024
1 parent c86360d commit 9013b13
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>
Expand All @@ -66,7 +67,7 @@ export default function Page() {
<div>{message.role}</div>
<div>{message.content}</div>
</div>
)}
))}

<form onSubmit={handleSubmit}>
<input
Expand All @@ -77,7 +78,7 @@ export default function Page() {
/>
</form>
</div>
)
);
}
```

Expand Down

0 comments on commit 9013b13

Please sign in to comment.