You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
426 B
16 lines
426 B
import {Route, Switch,Redirect} from 'react-router-dom'
|
|
import Home from "./components/Home";
|
|
import Test from "./components/Test";
|
|
import React from "react";
|
|
|
|
function MRoute() {
|
|
return (
|
|
<Switch>
|
|
<Route path="/home" component={Home}></Route>
|
|
<Route path="/test" component={Test}></Route>
|
|
<Redirect from="/" to="/home" exact/>
|
|
</Switch>
|
|
);
|
|
}
|
|
|
|
export default MRoute;
|