You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Link docs there is an example of passing a React Router Link component in the component property. However, the docs show that this property only accepts strings.
When I try this in my own project (Typescript) - I get the typing errors that the component isn't a string, which matches the docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the Link docs there is an example of passing a React Router Link component in the
component
property. However, the docs show that this property only accepts strings.When I try this in my own project (Typescript) - I get the typing errors that the component isn't a string, which matches the docs.
Is the example in the docs incorrect?
Beta Was this translation helpful? Give feedback.
All reactions