DEV Community

Félix Moreno
Félix Moreno

Posted on

1- Alpine.js ¿Cómo instalar?

La manera más sencilla de instalar Alpine.js es agregando el script siguiente:

<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> 
Enter fullscreen mode Exit fullscreen mode

Ejemplo:

Creamos un documento llamado index.html, y agregamos el siguiente código

<!DOCTYPE html> <html lang="en"> <head> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> </body> </html> 
Enter fullscreen mode Exit fullscreen mode

Referencias:

Alpine.js - Documentación

Top comments (0)