Fork me on GitHub
#reagent
<
2020-04-30
>
Franklin16:04:44

what is the best way to achieve the kind of routing implemented by react-router where when you click a link on any page, the browser does not perform a reload? I was thinking a potential way of doing this is creating a reagent component that encapsulates a HTML `<a>` tag that receives click events but calls  `(. e preventDefault)` on them. Does anyone here have thoughts on this?

athomasoriginal16:04:54

Can you use reitit? They have mechanisms that allow for this

Franklin16:04:32

uuuuh... I haven't tried reitit yet... Will look it up

Franklin16:04:37

Thanks simple_smile

💯 4
Franklin17:04:05

Found out that accountant is meant for this exact thing