inertia-react-development

Builds Inertia.js v3 React pages, forms, and client-side navigation components.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/coleYab/usacr --skill inertia-react-development-coleyab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inertia-react-development
Source: https://github.com/coleYab/usacr/tree/main/.grok/skills/inertia-react-development
Command: npx skills add https://github.com/coleYab/usacr --skill inertia-react-development-coleyab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building React frontends on Inertia.js requires knowing the correct v3 APIs for pages, forms, navigation, and data loading; this Skill provides the exact patterns so you avoid broken SPA behavior and outdated v2 syntax. ## 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 validation errors, processing states, and reset-on-success behavior. - Inertia v3 Features: Implement deferred props, optimistic updates, instant visits, layout props, useHttp requests, polling, WhenVisible, and InfiniteScroll. - Use Case: When adding a raffle ticket purchase form to a Laravel + Inertia React app, use this Skill to generate a <Form> component with error display, processing state, and optimistic UI updates. ## Quick Start Create an Inertia React page component with a form that submits to my Laravel route using the Form component with error handling.

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 Inertia React?

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

How do I navigate between pages in Inertia React?

Use the <Link> component from @inertiajs/react instead of <a> 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 through Inertia page visits, while useHttp makes standalone JSON requests that do not trigger page visits. Both share the same developer experience with data, setData, and processing states.

Does Inertia React support deferred props and polling?

Yes, Inertia v3 supports deferred props that load after initial render, requiring an undefined-state fallback UI. The usePoll hook refreshes data at intervals with automatic cleanup and tab-inactivity throttling.

Why is my Inertia React form submitting as a full page reload?

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

What changed in Inertia v3 router events?

In v3, router.cancel() was replaced by router.cancelAll(), and the invalid and exception events were renamed to httpException and networkError. Update event listeners accordingly when migrating.