🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

react-hash-link

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hash-link - npm Package Compare versions

Comparing version

to
1.0.1

{
"name": "react-hash-link",
"version": "1.0.0",
"version": "1.0.1",
"main": "lib/index.js",

@@ -16,4 +16,6 @@ "license": "MIT",

},
"peerDependencies": {
"react": ">=16"
},
"dependencies": {
"react": "^16.8.6",
"react-loadable": "^5.5.0"

@@ -20,0 +22,0 @@ },

@@ -5,2 +5,4 @@ # 🖇react-hash-link🖇

[![npm](https://img.shields.io/npm/dt/react-hash-link)](https://www.npmjs.com/package/react-hash-link)
The `HashLinkObserver` component can be rendered at any level of your component tree and will watch for hash fragments in your URL. When a hash link is encountered, the `HashLinkObserver` will scroll to the corresponding element on the page with `id="Your-Hash-ID"`.

@@ -7,0 +9,0 @@