Skip to content
프로젝트

소개

React Router integration within Next.js for client-side routing

웹 및 앱 개발

이 수치를 측정하는 방법

What you can do

  • ⚡ Lightning fast client-side routing
  • 🎯 Zero-config React Router integration
  • 🎨 Modern UI with Tailwind CSS
  • 🌙 Dark mode support

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

NexFaster

A minimal template showcasing React Router integration within Next.js for client-side routing

nexfaster

🚀 Quick Start

git clone https://github.com/rudrodip/nexfaster
cd nexfaster
bun install
bun dev

Open http://localhost:3000 to see the app.

🏗️ Architecture

NexFaster combines Next.js with React Router for pure client-side routing:

  1. Route Redirection: All routes redirect to /shell via next.config.ts
  2. Shell Loading: Shell page loads React Router app with ssr: false
  3. Client Routing: React Router handles all navigation client-side

📁 Key Files

  • next.config.ts - Route redirection configuration
  • src/app/shell/page.tsx - Loads React Router app
  • src/frontend/app.tsx - Main React Router application
  • src/config/site.config.ts - Site configuration
  • src/components/boilerplate.tsx - Layout and page components

🔧 Adding Routes

Add new routes in src/frontend/app.tsx:

<Route path="/your-page" element={<YourPage />} />

🎨 Features

  • ⚡ Lightning fast client-side routing
  • 🎯 Zero-config React Router integration
  • 🎨 Modern UI with Tailwind CSS
  • 🌙 Dark mode support
  • 📱 Responsive design
  • 🔧 TypeScript support

🛠️ Tech Stack

  • Framework: Next.js 15
  • Routing: React Router 7
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui
  • Icons: Lucide React
  • Language: TypeScript

📖 Usage Examples

Multi-page App

<Route path="/products" element={<ProductList />} />
<Route path="/products/:id" element={<ProductDetail />} />
<Route path="/cart" element={<ShoppingCart />} />

Protected Routes

<Route path="/dashboard" element={
  <ProtectedRoute>
    <Dashboard />
  </ProtectedRoute>
} />

Nested Layouts

<Route path="/admin" element={<AdminLayout />}>
  <Route path="users" element={<UserManagement />} />
  <Route path="settings" element={<Settings />} />
</Route>

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

BSD Zero Clause License - see LICENSE for details.

👤 Author

Created by rds_agi • GitHub • Twitter

관련 프로젝트 살펴보기

불러오는 중…