reactjs / reactjs/react.dev

[Bug]: Expand and collapse is not working

Open
#7,401 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Summary

Under Reference -->Hooks, Components,APIs and other components is having an expanding icon arrow > . On click on expanding arrow icon it is expanding list but on second click it is not collapsing the components.
In mobile views -----> there is no expanding icon and it is showing a long list of options
Screenshot_2025-01-02-02-00-28-259_com android chrome-edit

Page

https://react.dev/reference/react/hooks

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 reported Reference → Hooks page and reproduce the arrow behavior in desktop and mobile views. No files or tests are named, so trace the page's navigation implementation from that entry point. Done means a second click collapses the list and mobile views do not show an unintended long list.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.