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> 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>
Top comments (0)