reactjs / reactjs/react.dev

[Suggestion]: Add Collapse Feature for Left-Side Menu

Open
#7,203 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Summary

The left-side navigation menu in the React official documentation currently lacks a collapse feature. When navigating through long lists, users have to scroll to the bottom to access other sections. This can be inconvenient, especially when switching between categories such as “Hook” or “Components”.

image
Page

No response

Details

Proposal:
Add a collapse/expand functionality for the left-side navigation menu. This would allow users to collapse currently opened sections and easily navigate to other sections without extensive scrolling.

Additional Information:
I would be happy to contribute to this feature and submit a pull request to implement the collapse functionality. Please let me know if this is something the team is open to, and I can start working on it.

Thank you for considering this feature request!

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

Start by locating the left-side navigation implementation in the React documentation website and reviewing how sections such as Hooks and Components are rendered. Decide how collapse and expand should behave for the currently opened sections, then verify that users can reach other sections without extensive scrolling. The issue names no files or tests, so the relevant entry point must be found first.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.