Skip to content

Commit 5f585df

Browse files
committed
Merge branch 'Methuselah96-allow-v5'
2 parents fc52647 + a2db5d9 commit 5f585df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# React Router Hash Link
22

3-
***Note that this is for React Router v4, for v2/3 see [this solution](https://github.com/rafrex/react-router-hash-link/tree/react-router-v2/3).***
3+
***Note that this is for React Router v4/5, for v2/3 see [this solution](https://github.com/rafrex/react-router-hash-link/tree/react-router-v2/3).***
44

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

@@ -20,7 +20,7 @@ $ npm install --save react-router-hash-link
2020
...
2121
import { HashLink as Link } from 'react-router-hash-link';
2222
...
23-
// Use it just like a RRv4 <Link> (to can be a string or an object, see RRv4 api for details):
23+
// Use it just like a RRv4/5 <Link> (to can be a string or an object, see RRv4/5 api for details):
2424
<Link to="/some/path#with-hash-fragment">Link to Hash Fragment</Link>
2525
```
2626

@@ -31,7 +31,7 @@ import { HashLink as Link } from 'react-router-hash-link';
3131
...
3232
import { NavHashLink as NavLink } from 'react-router-hash-link';
3333
...
34-
// Use it just like a RRv4 <NavLink> (see RRv4 api for details):
34+
// Use it just like a RRv4/5 <NavLink> (see RRv4/5 api for details):
3535
<NavLink
3636
to="/some/path#with-hash-fragment"
3737
activeClassName="selected"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-router-hash-link",
33
"version": "1.2.1",
4-
"description": "Hash link scroll functionality for React Router v4",
4+
"description": "Hash link scroll functionality for React Router v4/5",
55
"main": "lib/index.js",
66
"scripts": {
77
"build": "rm -rf lib && babel src -d lib --presets=env,react --plugins=transform-object-rest-spread",
@@ -30,7 +30,7 @@
3030
},
3131
"peerDependencies": {
3232
"react": ">=15",
33-
"react-router-dom": "^4.1.1"
33+
"react-router-dom": "^4.1.1 || ^5.0.0"
3434
},
3535
"devDependencies": {
3636
"babel-cli": "^6.26.0",

0 commit comments

Comments
 (0)