panelmaster-in / laravel-react-jsx
The skeleton application for the Laravel framework.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
pkg:composer/panelmaster-in/laravel-react-jsx
Requires
- php: ^8.2
- inertiajs/inertia-laravel: ^2.0
- laravel/framework: ^12.0
- laravel/tinker: ^2.10.1
- laravel/wayfinder: ^0.1.12
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/boost: ^1.8
- laravel/pail: ^1.2.2
- laravel/pint: ^1.24
- laravel/sail: ^1.41
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- pestphp/pest: ^4.1
- pestphp/pest-plugin-laravel: ^4.0
README
🚀 Introduction
This is a JSX-based Laravel React Starter Kit with shadcn/ui and TailwindCSS 4. It provides a modern setup for building Laravel applications with a React frontend using Inertia.
This kit uses plain JavaScript (.jsx) instead of TypeScript, making it easier for developers who prefer JavaScript. It includes React 19, TailwindCSS 4, and shadcn/ui components built on Radix UI.
🎯 Features
- ✅ React 19 + JSX – No TypeScript, just JavaScript
- ✅ Laravel 12 – Latest Laravel framework
- ✅ Inertia.js v2 – Single-page app experience
- ✅ TailwindCSS 4 – Modern utility-first CSS framework
- ✅ shadcn/ui – Beautiful, accessible component library (50+ components)
- ✅ Vite – Fast development with hot module replacement
- ✅ Dark Mode – Built-in theme switching
- ✅ Zero Configuration – Install and start coding!
🛠 Installation
1️⃣ Installation via Laravel Installer
laravel new --using=panelmaster-in/laravel-react-jsx laravel-jsx-app
2️⃣ Install Dependencies
cd laravel-jsx-app
composer install
npm install
3️⃣ Setup Environment
cp .env.example .env php artisan key:generate
4️⃣ Run Database Migrations
php artisan migrate --seed
5️⃣ Start Development
npm run start
This starts both the Laravel server and Vite dev server concurrently.
Your app is now running! 🎉
📚 Tech Stack
- Laravel 12 – PHP web framework
- React 19 – UI library
- Inertia.js v2 – SPA framework
- TailwindCSS 4 – CSS framework
- shadcn/ui – Component library (Radix UI)
- Vite – Build tool
🏗 Project Structure
├── app/ # Laravel application
│ ├── Http/Controllers/ # Controllers
│ ├── Models/ # Eloquent models
│ └── Providers/ # Service providers
├── resources/
│ ├── pages/ # Inertia React pages
│ ├── components/ # React components
│ │ └── ui/ # shadcn/ui components (50+)
│ ├── hooks/ # React hooks
│ ├── lib/ # Utility functions
│ ├── js/ # JavaScript entry points
│ │ ├── app.jsx # Client entry
│ │ └── ssr.jsx # SSR entry
│ ├── css/
│ │ └── app.css # TailwindCSS styles
│ └── views/
│ └── app.blade.php # Main Blade template
└── routes/
└── web.php # Application routes
🎨 shadcn/ui Components
This starter kit includes 50+ pre-configured shadcn/ui components:
Layout & Navigation
- Accordion, Breadcrumb, Navigation Menu, Sidebar, Tabs, Pagination
Forms & Inputs
- Button, Input, Textarea, Select, Checkbox, Radio Group, Switch, Calendar
Overlays
- Dialog, Alert Dialog, Sheet, Popover, Tooltip, Dropdown Menu
Feedback
- Alert, Badge, Progress, Skeleton, Toast
Data Display
- Table, Card, Avatar, Chart, Carousel
All components are accessible, customizable, and follow the shadcn/ui "New York" style.
🔧 Using Components
Import shadcn/ui components using path aliases:
import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; import { Input } from "@/components/ui/input";
Use TailwindCSS classes for styling:
<Button className="bg-primary text-white hover:bg-primary/90"> Click me </Button>
🚦 Development Commands
npm run start- Start Laravel server and Vite dev servernpm run dev- Start Vite dev server only (For CSS and React)npm run build- Build for productionphp artisan test- Run testsphp artisan serve- Starts a local development server
📖 Documentation
⚖️ License
The Laravel + React JSX starter kit is open-sourced software licensed under the MIT license.
Happy coding! 🚀