Open chinedufn opened 5 years ago
Can do it around here
https://github.com/chinedufn/percy/blob/master/examples/isomorphic/client/src/lib.rs#L71
@cryptoquick you might find this useful. Basically lets you write your URLs as
html! { <a href="/some/path">Some Relative Path Link</a> }
and the route changes / page re-renders automatically.
I'm finding it much nicer than previously needing to call .msg()
everything I wanted a new route ...
Clicking on links that have relative paths such as
<a href="/login"></a>
would then change routes without needing to addonclick
handlers for such a common case.So basically this ... just with comments (pulled from one of my projects)