react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

docs(reference): remove unused useContext import from examples

Open DeveloperViraj opened this issue 1 month ago • 1 comments

This PR removes the unused useContext import from the AddTask and TaskList examples on the useContext reference page.

These examples use custom hooks (useTasks, useTasksDispatch) and no longer call useContext directly, so the import is unnecessary.

This aligns the examples with the actual code usage and fixes a small typo reported in the issue.

Closes #8186.

DeveloperViraj avatar Dec 08 '25 12:12 DeveloperViraj

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

github-actions[bot] avatar Dec 08 '25 12:12 github-actions[bot]