Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs(reference): remove unused useContext import from examples #8189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DeveloperViraj wants to merge 1 commit into reactjs:main
base: main
Choose a base branch
Loading
from DeveloperViraj:fix/docs/remove-unused-useContext

Conversation

@DeveloperViraj
Copy link

@DeveloperViraj DeveloperViraj commented Dec 8, 2025

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.

Copy link

github-actions bot commented Dec 8, 2025

Size changes

Details

📦 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! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Typo]: The code example on the "useContext" page includes an unused import useContext

1 participant

AltStyle によって変換されたページ (->オリジナル) /