alpinejs / alpine

A rugged, minimal framework for composing JavaScript behavior in your markup.
https://alpinejs.dev
MIT License
27.92k stars 1.22k forks source link

:memo: Updates docs with notes for x-data usage #4307

Open ekwoka opened 1 month ago

ekwoka commented 1 month ago

This comes up quite often, that someone is stumped by a directive not working, despite copying it from the docs because it doesn't have an x-data parent.

So this adds an extra note in the start here, and a note under the first example that doesn't use x-data for each directive (as needed).

It's a sad day.