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