Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

747 B
Raw Blame
// ===================
// © AngelaMos | 2025
// App.tsx
// ===================
import { Route } from '@solidjs/router'
import { type Component, lazy } from 'solid-js'

const Home = lazy(() => import('./pages/Home'))
const Register = lazy(() => import('./pages/Register'))
const Login = lazy(() => import('./pages/Login'))
const Chat = lazy(() => import('./pages/Chat'))
const NotFound = lazy(() => import('./pages/NotFound'))

const App: Component = () => {
  return (
    <>
      <Route path="/" component={Home} />
      <Route path="/register" component={Register} />
      <Route path="/login" component={Login} />
      <Route path="/chat" component={Chat} />
      <Route path="*" component={NotFound} />
    </>
  )
}

export default App