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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay