mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-23 10:26:42 +00:00
22 lines
460 B
JavaScript
22 lines
460 B
JavaScript
import React from "react";
|
|
import { Switch, Route, BrowserRouter as Router } from "react-router-dom";
|
|
import RegisterVehicle from "./RegisterVehicle";
|
|
import YourVehicles from "./YourVehicles";
|
|
|
|
function Home() {
|
|
return (
|
|
<Router>
|
|
<Switch>
|
|
<Route path="/register">
|
|
<RegisterVehicle />
|
|
</Route>
|
|
<Route path="/">
|
|
<YourVehicles />
|
|
</Route>
|
|
</Switch>
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
export default Home;
|