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.

24 lines
557 B

import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
3 years ago
import Home from "./views/Home";
import VideoTube from "./views/Home/VideoTube";
export default function router() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
3 years ago
<Route path="/vod" element={<VideoTube />} />
<Route
path="*"
element={
<main>
<h1>No matches routes.</h1>
</main>
}
/>
</Routes>
</BrowserRouter>
);
}