import React, { Component } from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; class Router extends Component { constructor(props) { super(props); this.state = {} render() { const TabbarRender = () => { switch (window.location.pathname) { case `${HOST}/`: return <Tabbar></Tabbar> case `${HOST}/repertoire`: return <Tabbar></Tabbar> case `${HOST}/me`: return <Tabbar></Tabbar> case `${HOST}/discover`: return <Tabbar></Tabbar> } return null }; return ( ) } } }