Spa

Single Page Application architecture with client-side routing

ffsshhttiikk 4bd9a81 749 B Updated

File contents

What I do

  • Build SPAs with client-side routing
  • Manage application state
  • Handle browser history API
  • Implement lazy loading
  • Optimize initial load

When to use me

When building interactive web apps with smooth navigation.

React Router

import { BrowserRouter, Routes, Route, Link } from 'react-router-dom';

function App() {
  return (
    <BrowserRouter>
      <nav>
        <Link to="/">Home</Link>
        <Link to="/about">About</Link>
      </nav>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/about" element={<About />} />
      </Routes>
    </BrowserRouter>
  );
}

ffsshhttiikk/opencode-agents-skills/tree/main/spa commit 4bd9a81a90

Frequently asked questions

npx skillmds@latest add ffsshhttiikk/spa