Added DocWrapper and Link component to address link issues

This commit is contained in:
Lakshya Thakur
2020-10-24 18:32:45 +05:30
parent ebb35a0833
commit 8298755373
5 changed files with 60 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
import React from "react"
const Link = ({hash,title}) =>{
const handleLink=(event)=>{
//manually change hash to trigger hashChange event.
window.location.hash = "#";
window.location.hash = hash;
}
return <a onClick={handleLink} className="navlink">{title}</a>
}
export default Link