Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bep authored Oct 6, 2021
1 parent 14a52ed commit ffad570
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions alpinejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import persist from 'jslibs/alpinejs/v3/persist/dist/module.esm.js';

// Set up and start Alpine.
(function() {
// Register AlpineJS plugins.
Alpine.plugin(intersect);
Alpine.plugin(persist);
// Register AlpineJS plugins.
Alpine.plugin(intersect);
Alpine.plugin(persist);

// Start Alpine.
Alpine.start();
Expand All @@ -31,4 +31,4 @@ import persist from 'jslibs/alpinejs/v3/persist/dist/module.esm.js';

```

Note that this works great in combination with [Turbo](https://github.com/gohugoio/hugo-mod-jslibs/tree/master/turbo), but you would need to set up something like [these listeners](https://gist.github.com/bep/a9809f0cb119e44e8ddbe37dd1e58b50) to make it work properly.
Note that this works great in combination with [Turbo](https://github.com/gohugoio/hugo-mod-jslibs/tree/master/turbo), but you would need to set up something like [these listeners](https://gist.github.com/bep/a9809f0cb119e44e8ddbe37dd1e58b50) to make it work properly.

0 comments on commit ffad570

Please sign in to comment.