Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jrson83/inertia-preact

The Preact adapter for Inertia.js.
https://github.com/jrson83/inertia-preact

inertia inertiajs inertiajs-adapter laravel preact preactjs ssr

Last synced: about 2 months ago
JSON representation

The Preact adapter for Inertia.js.

Awesome Lists containing this project

README

        

# Inertia.js Preact Adapter

The [Preact](https://preactjs.com/) adapter for
[Inertia.js](https://inertiajs.com).

> This is a port of the original
> [Inertia.js React Adapter](https://github.com/inertiajs/inertia).

## Installation

Install the adapter as npm module:

```bash
npm install @jrson83/inertia-preact -D
```

### Preset

The recommended way of installing the adapter is to
create a fresh Laravel project and use the preset.

```bash
npx @preset/cli apply jrson83/inertia-preact-preset
```

This preset installs [Inertia.js](https://inertiajs.com)
with [Preact](https://preactjs.com/),
[TypeScript](https://www.typescriptlang.org/),
[Vite](https://vitejs.dev) and
[SSR](https://inertiajs.com/server-side-rendering) in a
fresh Laravel application.

More information on the options on the
[repository](https://github.com/jrson83/inertia-preact-preset).

More information on the adapter can be found on my blog
[jrson.me](https://jrson.me).

## Ping CRM Demo

A live demo of the app & SSR is available at
[https://pingcrm-preact.jrson.de/](https://pingcrm-preact.jrson.de/).

## Ping CRM Repository

The Ping CRM Preact repository is available at
[https://github.com/jrson83/pingcrm-preact](https://github.com/jrson83/pingcrm-preact).