Answers for "route a external link in react js"

5

react router external link

<Link to={{ pathname: "https://example.zendesk.com/hc/en-us/articles/123456789-Privacy-Policies" }} target="_blank" />
Posted by: Guest on September-04-2020
0

how to link to a different component in reactjs without react router

const showComponent = (route, component) => {
  return window.location.pathname === route ? component : null
}
Posted by: Guest on November-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language