Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion beta/src/content/learn/referencing-values-with-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Usually, this behavior is what you want in an app. However, there may be occasio
<Sandpack>

```js
import { useState, useRef } from 'react';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, this needs to be removed.
@holazz Can you rebase this PR on top of the latest main branch? Now this unused useRef can be found here:

import { useState, useRef } from 'react';

import { useState } from 'react';

export default function Chat() {
const [text, setText] = useState('');
Expand Down