redirect root dir to leduc holdem
This commit is contained in:
parent
d75a427d64
commit
62f71d3655
|
@ -1,11 +1,14 @@
|
|||
import React from 'react';
|
||||
import { BrowserRouter as Router, Route } from "react-router-dom";
|
||||
import { BrowserRouter as Router, Route, Redirect } from "react-router-dom";
|
||||
import DoudizhuGameView from './view/DoudizhuGameView';
|
||||
import LeducHoldemGameView from './view/LeducHoldemGameView';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<Router>
|
||||
<Route exact path="/">
|
||||
<Redirect to="/leduc-holdem" />
|
||||
</Route>
|
||||
<Route path="/doudizhu" component={DoudizhuGameView} />
|
||||
<Route path="/leduc-holdem" component={LeducHoldemGameView} />
|
||||
</Router>
|
||||
|
|
Loading…
Reference in New Issue