Skip to content

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

@oalbacha

Description

@oalbacha

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions