react.dev
react.dev copied to clipboard
docs(reference): remove unused useContext import from examples
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.
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! 🙌