RouterLink: use forwardRef
Hi! Thanks for great little router!
I just noticed that <RouterLink> does not accept ref prop.
This should be easily solved by adding forwardRef, if I am not mistaken.
Should I send a PR? Thanks!
Hi @dodas, may I know what use case are you trying to solve using a ref into the link?
Hey Naresh!
Accessing the underlying element though the ref can be useful in many cases.
For example, if you wrap RouterLink in Chakra UI's Tooltip, the tooltip won't be positioned correctly, because Chakra UI cannot access the underlying element.
Hi @dodas, please feel free to submit a PR on the mobx6-update branch.