Production-grade micro-frontend architecture showcasing React 19.2.0 features
Live Demo β’ Documentation β’ Architecture
|
|
# Clone
git clone https://github.com/waqas1412/react19-nexus.git
cd react19-nexus
# Install
pnpm install
# Dev
pnpm dev
# Build
pnpm buildOpen β http://localhost:5173
src/
βββ features/ # π― Micro-Frontends
β βββ tasks/ # Task management
β βββ dashboard/ # Analytics
β βββ analytics/ # Metrics
βββ shell/ # π Application Shell
β βββ components/ # Layout, Router
β βββ hooks/ # Shell hooks
βββ shared/ # π§ Shared Resources
βββ components/ # UI components
βββ hooks/ # Custom hooks
βββ utils/ # Event bus, helpers
Each feature is independent with:
- Own components, hooks, services
- Lazy-loaded on demand
- Event-driven communication
- Isolated state management
const [state, submitAction, isPending] = useActionState(
async (_prevState, formData) => {
const task = await createTask(formData.get('title'));
return { success: true, task };
}
);const [optimisticTasks, updateOptimistic] = useOptimistic(
tasks,
(state, action) => {
return state.map(t =>
t.id === action.id ? { ...t, completed: !t.completed } : t
);
}
);<Suspense fallback={<Loading />}>
<DataComponent />
</Suspense>
function DataComponent() {
const data = use(fetchData()); // β¨ Promise unwrapping
return <div>{data.value}</div>;
}- Frosted glass effects
- Neon accents (cyan, purple, pink)
- Smooth animations
- Dark cyberpunk theme
- Bundle: 311KB (99KB gzipped)
- Code Splitting: Automatic by feature
- Lazy Loading: All routes
- Animations: Framer Motion
| Category | Technology |
|---|---|
| Framework | React 19.2.0 |
| Language | TypeScript 5.9 |
| Build | Vite 7.1 |
| Styling | Tailwind CSS 3.4 |
| Animation | Framer Motion 12 |
| Testing | Vitest + RTL |
| Linting | ESLint 9 (Flat Config) |
pnpm test # Run tests
pnpm test:ui # UI mode
pnpm test:coverage # Coverage report12 tests across components, hooks, and features.
β
Single Responsibility
β
Open/Closed
β
Liskov Substitution
β
Interface Segregation
β
Dependency Inversion
β
DRY (Don't Repeat Yourself)
β
Feature-based structure
β
Type safety everywhere
β
Event-driven architecture
β
Lazy loading by default
| Metric | Value |
|---|---|
| Lighthouse | 95+ |
| First Contentful Paint | < 1.5s |
| Time to Interactive | < 3.0s |
| Bundle Size | 99KB (gzipped) |
Contributions welcome! See CONTRIBUTING.md
MIT Β© Waqas1412
Built with β‘ by @waqas1412
β Star this repo if you find it useful!


