Unverified Commit a18e2ec9 authored by vinay's avatar vinay Committed by GitHub

(Docs) Add missing import for `useRef()` (#53015)

parent 85676da4
......@@ -298,7 +298,7 @@ When a Server Action is invoked, the UI is updated immediately to reflect the ex
```jsx filename="app/thread.js"
'use client'
import { experimental_useOptimistic as useOptimistic } from 'react'
import { experimental_useOptimistic as useOptimistic, useRef } from 'react'
import { send } from './actions.js'
export function Thread({ messages }) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment