inertia-react-development

Implements Inertia.js v3 React pages, forms, navigation, and client-side data features.

Updated Jul 18, 2026
One-click install
npx skills add https://github.com/daviddatuX25/Serbizyu-2.0 --skill inertia-react-development-daviddatux25
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: inertia-react-development
Source: https://github.com/daviddatuX25/Serbizyu-2.0/tree/main/.cursor/skills/inertia-react-development
Command: npx skills add https://github.com/daviddatuX25/Serbizyu-2.0 --skill inertia-react-development-daviddatux25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building React frontends inside a Laravel application requires correct use of Inertia.js v3 patterns, and mistakes like using plain anchor tags or mishandling deferred props break SPA behavior and degrade user experience. ## Core Features & Use Cases - Page Components & Navigation: Create React page components in resources/js/Pages and wire client-side navigation with <Link>, router.visit, and prefetching. - Form Handling: Build forms with the <Form> component or useForm hook, including error display, processing states, reset props, and file upload progress. - Inertia v3 Features: Apply deferred props, optimistic updates, instant visits, layout props via setLayoutProps, useHttp requests, usePoll polling, WhenVisible lazy loading, and InfiniteScroll pagination. - Use Case: When adding a user management page to a Laravel + React app, use this Skill to scaffold the page component, wire a creation form with validation errors, and add polling for live stats. ## Quick Start Create an Inertia React page component with a form that posts to /users and displays validation errors.

Frequently Asked Questions about inertia-react-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a form in React with Inertia?▼

Use the <Form> component from @inertiajs/react with an action and method, rendering errors and processing state via its render prop. For programmatic control, use the useForm hook with data, setData, and post.

How do I navigate between pages in an Inertia React app?▼

Use the <Link> component from @inertiajs/react instead of plain anchor tags to preserve SPA behavior. For programmatic navigation, call router.visit with the target URL and optional method, data, and callbacks.

What is the difference between useForm and useHttp in Inertia v3?▼

useForm submits data as Inertia visits that update page props, while useHttp makes standalone JSON requests that do not trigger page visits. Use useHttp for API-style endpoints like search.

Does Inertia React support lazy loading data below the fold?▼

Yes, the WhenVisible component lazy-loads a prop when an element scrolls into view, with a configurable buffer and fallback UI. Deferred props and InfiniteScroll cover other lazy-loading scenarios.

Why does my Inertia React form submit as a full page reload?▼

This happens when using a plain HTML form without preventing the default submission. Use the <Form> component or call e.preventDefault() in your submit handler with useForm.

What breaking changes exist in Inertia v3 for React?▼

router.cancel() was replaced by router.cancelAll(), and the invalid and exception router events were renamed to httpException and networkError. Check these when upgrading existing code.