Local Storage Plugin

Local storage data with Alpine JS official $persist plugin.

This uses the official Alpine JS $persist plugin.

You can refresh the browser and Alpine JS will auto populate the x-data value from the local storage data.

Example

Code