Closed jrson83 closed 2 years ago
Right, I will have to add this.
It is a better workaround to use to()
:
import { to } from 'nano-jsx/lib/components/router'
<div>
<style>{'.my-class { color:blue; }'}</style>
<a href="/somewhere" class="my-class" onClick={() => to('/somewhere')}>
Somewhere
</a>
</div>
Describe Currently it's not possible to add a CSS class like
class="nav-link"
to Router.Link.My current workaround:
Have a question? If im not wrong, it would be great if you could add an optional CSS class to the Router.Link.