faceyspacey / redux-first-router-link

<Link /> + <NavLink /> that mirror react-router's + a few additional props
MIT License
55 stars 33 forks source link

Ref forwarding for Link/NavLink component #119

Closed rebyul closed 3 years ago

rebyul commented 5 years ago

Is there a reason the Links/NavLinks dont have a forward ref to their Root components?

https://github.com/faceyspacey/redux-first-router-link/blob/master/src/Link.js

Line 64 shows the root component is basically cast(? i dont know the right term for component declaration via strings), so they can be any valid DOM element which in React, all have a ref prop.

I can see that some people have requested a component prop/render prop to be included in the next release; are forwarded refs going to be included as well?

Thanks in advance :)