How to Use Fetch with Alpine JS

This uses a plugin that adds Alpine JS magic methods $get, $post, $put, $patch and $delete as a wrapper for fetch.

It's a clone of Alpine JS Axios but instead of using Axios, it uses the native JavaScript fetch.

Plugins

Created by Mark Mead