# react-router-hash-link

Hash link scroll functionality for React Router

Canonical page: https://www.reposhelf.co.uk/projects/github/rafgraph/react-router-hash-link.html

- Project ID: rafgraph/react-router-hash-link
- Source: GitHub
- Original project: https://github.com/rafgraph/react-router-hash-link
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: React
- Licence: MIT
- Repository availability checked: 2026-11-05T15:28:21.499Z
- Demo page loaded: 2026-11-23T18:21:10.932Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> This is a solution to React Router's issue of not scrolling to \#hash-fragments when using the component to navigate.

> When you click on a link created with react-router-hash-link it will scroll to the element on the page with the id that matches the \#hash-fragment in the link. This will also work for elements that are created after an asynchronous data load. Note that you must use React Router's BrowserRouter for this to work.



## Author-documented requirements and audience

> This is a solution to React Router's issue of not scrolling to \#hash-fragments when using the component to navigate.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/rafgraph/react-router-hash-link/blob/main/README.md

Extraction checked: 2026-10-20T21:37:13.529Z

Last recorded source update: 2021-10-07T16:18:48.000Z

Saved release: v2.4.3 — 2021-05-13T01:20:56.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=rafgraph%2Freact-router-hash-link). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
