use react-router for react-vr
1. git clone https://github.com/LiuC520/react-vr-router.git
5.open your browser, http://localhost:8081/vr/
import { MemoryRouter as Router, Redirect, Route, Switch } from 'react-router';
import TS1 from './src/test'
import TS2 from './src/test_1'
class Example extends Component{
render(){
return(
<Router>
<View>
<Route exact path='/' component={TS1}/>
<Route exact path='/test_1' component={TS2}/>
<Route exact path='/test' component={TS1}/>
</View>
</Router>
)
}
}