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.

25 lines (21 loc) 427 B
import { useEffect } from "react"; import { Toaster } from "react-hot-toast"; import eruda from "eruda"; import AppRoutes from "./routes"; function App() { // Eruda console useEffect(() => { eruda.init({ element: document.getElementById("console"), tools: ["console"] }); }, []); return ( <> <AppRoutes /> <Toaster /> <p id="console"></p> </> ); } export default App;