So verlinken Sie mit einer anderen Komponente in ReactJs ohne React -Router

const showComponent = (route, component) => {
  return window.location.pathname === route ? component : null
}
Stupid Swiftlet