Como vincular a um componente diferente no ReactJS sem o Router React

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