News for hackers. Stuff that matters.
Re:Alpine.js by stepbeek on Friday January 13, 2023 @08:13AM (#34367214)
I have. We used stimulusjs otherwise and wrote a controller that took in a component name and JSON props (embedded in HTML as a data attribute).

It works well. You end up with HTML like:

<div data-controller=“component” data-name-component-value”example” data-props-component-value=“{a: 1}”></div>

There are no comments on this comment yet.