
Frontend Routing
This handles client-side routing across React Router v6, Vue Router 4, and Angular Router with working examples for protected routes, lazy loading, and query parameters. You'll want this when building SPAs that need URL-based navigation, route guards for auth, or code splitting. The quick start gives you a protected route wrapper right away, and the reference guides break down framework-specific implementations. It covers the practical stuff like transition effects and query parameter handling, though the best practices section is pretty generic. Solid if you're setting up routing from scratch or migrating between major versions.
- skills.sh installs
- 454
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill frontend-routing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Frontend Routing
Table of Contents
Overview
Implement client-side routing with navigation, lazy loading, protected routes, and state management for multi-page single-page applications.
When to Use
- Multi-page navigation
- URL-based state management
- Protected/guarded routes
- Lazy loading of components
- Query parameter handling
Quick Start
Minimal working example:
// App.tsx
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { Layout } from './components/Layout';
import { Home } from './pages/Home';
import { NotFound } from './pages/NotFound';
import { useAuth } from './hooks/useAuth';
import React from 'react';
// Lazy loaded components
const Dashboard = React.lazy(() => import('./pages/Dashboard'));
const UserProfile = React.lazy(() => import('./pages/UserProfile'));
const Settings = React.lazy(() => import('./pages/Settings'));
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Frontend Development, AI & Agent Building
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Load Balancer Setup454
- Property Based Testing454
- Aws Rds Database453
- Log Aggregation453
- Documentation Site Setup452
- Monorepo Management451
- Retrospective Facilitation451
- Api Filtering Sorting450
- Cloud Migration Planning450
- Design Handoff450
- Git Hooks Setup450
- Cloud Storage Optimization449
- Performance Regression Debugging449
- Secrets Management449
- Configuration Management448
- Alert Management447
- Cloud Cost Management447
- Troubleshooting Guide447
- Vue Application Structure447
- Database Sharding446
- Network Security Groups446
- Azure App Service445
- Feature Flag System445
- Infrastructure Cost Optimization445