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

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

Open
@oalbacha

Description

Summary

The code example on the "useContext" page includes an unused import useContext

Page

https://react.dev/reference/react/useContext#scaling-up-with-context-and-a-reducer

Details

The code in useContext hook documentation in the examples for updating context. The 5th example Example 5 of 5: Scaling up with context and a reducer here. On line 1 of both TaskList.js and AddTask.js files, the useContext import is unused.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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