inertia-react-development

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

Updated Aug 24, 2026
One-click install
npx skills add https://github.com/Mantis-Technology/mantis-laravel --skill inertia-react-development-mantis-technology
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: inertia-react-development
Source: https://github.com/Mantis-Technology/mantis-laravel/tree/main/.agents/skills/inertia-react-development
Command: npx skills add https://github.com/Mantis-Technology/mantis-laravel --skill inertia-react-development-mantis-technology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building React frontends for Inertia.js applications requires knowing the correct v3 APIs for pages, forms, navigation, and data loading, and mistakes like using plain anchor tags or mishandling deferred props break the single-page experience. ## Core Features & Use Cases - Page Components & Navigation: Create React page components in resources/js/Pages and implement client-side navigation with <Link>, router.visit, prefetching, and instant visits. - Form Handling: Build forms with the <Form> component or useForm hook, including validation errors, progress indicators, reset behavior, and optimistic updates. - Inertia v3 Data Features: Use useHttp for plain JSON requests, deferred props, usePoll for polling, WhenVisible for lazy loading, InfiniteScroll for paginated data, and setLayoutProps for shared layout data. - Use Case: When adding a user creation page to a Laravel + Inertia + React app, use this Skill to scaffold the page component, wire up a <Form> with error handling, and add prefetching links for fast navigation. ## Quick Start Ask the AI to create an Inertia React page component with a form that posts to a Laravel endpoint 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 plain anchor tags to preserve SPA behavior. For programmatic navigation, call router.visit with optional method, data, and callbacks like onSuccess.

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

useForm submits data through Inertia page visits, while useHttp makes standalone HTTP requests to plain JSON endpoints without triggering a page visit. Both share a similar API with data, setData, and processing state.

How do deferred props work in Inertia React?▼

Deferred props load after the initial page render, so the prop is undefined on first render. Render a loading or skeleton state when the prop is undefined, then display the data once it arrives.

Why is my Inertia React app doing full page reloads?▼

Full reloads usually happen when using traditional <a> tags instead of Inertia's <Link> component, or when submitting a plain <form> without preventing the default submission. Use <Link> for navigation and the <Form> component or e.preventDefault() for forms.

Does Inertia v3 React support polling and infinite scroll?▼

Yes, the usePoll hook refreshes data at intervals with automatic cleanup and tab-inactivity throttling. The InfiniteScroll component loads additional paginated pages as the user scrolls, requiring Inertia::scroll() on the server.