What is Alpine JS?

Alpine.js is a relatively new front-end framework that promises the reactive and declarative nature of big frameworks like Vue.js or React.js without having to run npm, compile scripts, configure webpack all in a nice 7.37kb CDN hosted file. You get to keep your DOM and sprinkle in behavior as you see fit. Think of it like Tailwind for JavaScript.

According to the Alpine.js docs , its syntax is almost entirely borrowed from Vue.js (and by extension Angular.js ), so if you already know either of these frameworks there is a very low learning curve to getting started.

In this blog, We will learn how to use alpine.js In Laravel with two examples.

  1. Alpine.js CDN
  2. Laravel Mix

Read More

#laravel #php #javascript #js

How to Use Alpine JS with Laravel
8.80 GEEK