Skip to content

Commit e0affa4

Browse files
committed
Update readme
1 parent 6733d31 commit e0affa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[Live Example](http://react-router-hash-link.rafrex.com/)
66

7-
This is a solution to React Router's issue of not scrolling to `#hash-fragments` when using the `<Link>` component to navigate.
7+
This is a solution to [React Router's issue of not scrolling to `#hash-fragments`](https://github.com/reactjs/react-router/issues/394#issuecomment-220221604) when using the `<Link>` component to navigate.
88

99
When you click on a link created with `react-router-hash-link` is will scroll to the element on the page with with the `id` that matches the `#hash-fragment` in the link. Note that you must use React Router's `BrowserRouter` for this to work.
1010

@@ -18,5 +18,5 @@ $ npm install --save react-router-hash-link
1818
import { HashLink as Link } from 'react-router-hash-link';
1919
...
2020
// Use it just like a RRv4 link:
21-
<Link to="/some/path#with-hash-fragment">Link to Hash Fragment<Link>
21+
<Link to="/some/path#with-hash-fragment">Link to Hash Fragment</Link>
2222
```

0 commit comments

Comments
 (0)