-1
According to the documentation, it is possible to render a custom element in the React-Router-Dom Link:
If you would like use your Own navigation Component, you can Imply do so by Passing it through the Component prop.
I tried to render a web Component in place of the link, but the style of my web Component is not being loaded in place of the Link, it is loading only one <a>
:
<Link
to={ROUTE.REGISTRY}
component={() =>
(<my-webcomponent-link />
)}
>
Registrar
</Link>
Link’s <a> style is still applied =[
– veroneseComS
In that case, it will be necessary to add:
style={{ textDecoration: 'none' }}
on the Link component, I updated the answer to see exactly where to put– lauanS