inertia.js

Inertia currently supports a limited number of adapters, which are necessary for development with this technology.

front end adapters

Frontend adapters allow you to create components that render data that is delivered directly by backend frameworks. They also do things like capture all page requests, ie click on the links, so that they are done through Ajax.

To function as a SPA, frontend adapters offer a component called that works as a link that makes Ajax requests to the server. It is also possible to make requests programmatically using Javascript with the Inertia.visit() method. The server then returns a JSON with the name of the Javascript component and the data it requires. Through this operation, the Inertia.js frontend component is responsible for exchanging the current component determined with this request for the new component and the data delivered by the backend.

The frontend adapters officially supported by Inertia.js are developed in React, Vue or Svelte.

backend adapters

The backend adapters are in charge of doing the server-side job of correctly intercepting requests coming from Inertia links and producing the appropriate responses so that the frontend components have all the data they need to function.

Laravel and Rails are currently officially supported, but the community has developed backend adapters to support Inertia.js in a huge variety of frameworks such as Symfony, NodeJS, Django, Go, Codeiniter, CakePHP, Yii2, Flask and many others.

See also  Type of data
Loading Facebook Comments ...
Loading Disqus Comments ...