I am trying to create a custom router component so that my tr links to another page passing through the data object for that row. When I click the link my not found page comes up, even when I use simple routes like '/'. I also had this issue with simplified versions I made for debugging. Heres my code:
import {setLinkProps} from 'hookrouter'
const MyLinkButton = (props) => {
console.log(props)
return <button {...setLinkProps(props)} className="myButton">Click me now</button>
}
<MyLinkButton href="/" datathing='lol'></MyLinkButton>
(Im sure that it's an error on my part, however I haven't been able to find any code example for custom router components using this library to compare with, and I was not able to understand the issue by wading through the source code.)