Skip to content

[Typo]: Missing code for ContactList and Chat components in useReducer example #7898

@john-walter-munene

Description

@john-walter-munene

Summary

What page is the problem related to?

https://react.dev/learn/extracting-state-logic-into-a-reducer

Issue Description

While following the example for using useReducer, there's a Messenger component that uses ContactList, Chat, and a contacts array.

However, the definitions for ContactList, Chat, and contacts are missing from the documentation. This makes it hard to complete the exercise or understand how the example works without looking at the provided solution.

Suggested fix

Add code snippets or links to the necessary components (ContactList, Chat) and data (contacts) directly above or below the Messenger example.

Page

https://react.dev/learn/extracting-state-logic-into-a-reducer

Details

No response

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