What problem does it solve?
Establishes a standardized, efficient approach for building React frontends within Laravel projects, reducing boilerplate and ensuring consistent component structure and data flow.
Core Features & Use Cases
- Page and component organization: pages live in resources/js/pages, shared components live in resources/js/components, UI primitives live in resources/js/components/ui, and custom hooks live in resources/js/hooks.
- Server-driven props pattern: pages receive data as props from the Laravel controller via Inertia; avoid client-side data fetching or useEffect for initial data loading.
- Type-safe conventions: explicit interfaces for props, path aliases (e.g. '@/components', '@/hooks', '@/types'), and typed components to ensure reliability.
- React 19 + React Compiler guidance: rely on the compiler’s memoization to optimize performance; minimize manual useMemo/useCallback unless profiling justifies it.
- State management guidance: use useState and useReducer for local state; leverage Inertia’s shared data for server-provided state.
Quick Start
Create a typed React component skeleton from a provided UI spec.