UNPKG

create-swiftstart

Version:

Automate the setup of Vite-React & Next.js projects with a pre-designed boilerplate structure using create-swiftstart. This tool saves your time and provides a clean starting point for your React or Next.js applications.

16 lines (14 loc) 382 B
import { Routes, Route } from "react-router-dom"; import { RootLayout, Home, NotFound } from "@/pages/root"; const AppRoutes = () => { return ( <Routes> {/* Public Route */} <Route element={<RootLayout />}> <Route index element={<Home />} /> <Route path="*" element={<NotFound />} /> </Route> </Routes> ); }; export default AppRoutes;