reactjs / reactjs/react.dev

[Mistake]: Learn > Escape Hatches > Lifecycle of Reactive Effects

Open Beginner friendly
#8,231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: typos
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Summary

If you look at ChatRoom.js in an example of the 4. Fix a connection switch code in Try out some challenge, it looks like the image below.
The useState is not used in the code, so it is correct to remove it.

Image
Page

https://react.dev/learn/lifecycle-of-reactive-effects

Details

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the lifecycle-of-reactive-effects page and find the “4. Fix a connection switch code” example in Try out some challenge. Inspect ChatRoom.js, remove the unused useState code, and verify that the example still renders correctly without it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.