AGENT SKILL

spa

Single Page Application architecture with client-side routing

License 许可
MIT
最近更新
2026-03-01
Stars
★ 3
Forks
2

01 前言 Front Matter

name
spa
license
MIT
metadata
{ "audience": "developers", "category": "web-development" }
description
Single Page Application architecture with client-side routing
compatibility
opencode

03 SKILL.md 正文

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>
  );
}

04 同仓库更多 Skills