//basic set-up for react routes
import React from 'react';
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { Register, Login, ChatApp } from "./Pages";
const app = () => {
return (
<BrowserRouter>
<Routes>
<Route path="/register" element={ <Register/>} />
<Route path="/login" element={ <Login/>} />
<Route path="/" element={ <ChatApp/>} />
//<Routes path="~url of path~" element={ <~react component/page~/>}/>
</Routes>
</BrowserRouter>
)
}
export default app;