[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.

Assessment

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

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.

Description

type: typos
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

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
16h 6m
Merged PRs (30d)
7

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.

More from reactjs/react.dev

All issues in reactjs/react.dev

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.