Skip to content

Commit

Permalink
(Docs) Add missing import for useRef() (#53015)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaykulk621 authored Jul 23, 2023
1 parent 85676da commit a18e2ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down

0 comments on commit a18e2ec

Please sign in to comment.