项目
在 GitHub 查看
rudrodip/nexfaster
关于
React Router integration within Next.js for client-side routing
网站与应用开发可以做什么
- ⚡ Lightning fast client-side routing
- 🎯 Zero-config React Router integration
- 🎨 Modern UI with Tailwind CSS
- 🌙 Dark mode support
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文NexFaster
A minimal template showcasing React Router integration within Next.js for client-side routing

🚀 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:
- Route Redirection: All routes redirect to
/shellvianext.config.ts - Shell Loading: Shell page loads React Router app with
ssr: false - Client Routing: React Router handles all navigation client-side
📁 Key Files
next.config.ts- Route redirection configurationsrc/app/shell/page.tsx- Loads React Router appsrc/frontend/app.tsx- Main React Router applicationsrc/config/site.config.ts- Site configurationsrc/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
探索相关项目
加载中…