import React from 'react'; import { BrowserRouter, Routes, Route, } from 'react-router-dom'; import AdminRoutes from './admin/adminRoutes'; const routes = () => ( <BrowserRouter> <AdminRoutes /> <Routes> <Route path="/home" element="User template" /> <Route path="/" element="Login Template" /> <Route path="/register" element="Register Template" /> </Routes> </BrowserRouter> ); export default routes;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter