Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Another similar attribute is the x-if, which completely removes the element from the DOM but has two significant constraints. Because the Alpine uses the real DOM and not a virtual, the first constraint is that the x-if attribute must be applied on a tag. Consequently, the second constraint is that the must have a single element root. The equivalent of the above x-show example using the x-if attribute is:
the spruce library as a global state for simplifying the inter-component communication
several magic helpers will help facilitate some common patterns like ajax interactions or parent component access.
JQuery took this role in the websites, and it is one of the reasons that it is still one of the most popular libraries. Unfortunately, jQuery is a child of an old era and does not consider modern concepts such as the reactive state. Furthermore, most jQuery features, such as selectors or simplified AJAX calls, are replaced by modern javascript.
Related posts
- Cross-component Communication Patterns in AlpineJs
- jQuery 3.7.0 is now available - This release has it all: bug fixes, a new method, and a performance improvement. We even dropped our longtime selector engine: Sizzle
- You Might Not Need jQuery
- An SPA Alternative
- My experience with JavScript and PHP as a junior web developer.