Next to all-encompassing frameworks that grow to accommodate an ever larger set of concerns (e.g., client-side rendering, server-side rendering, routing, componentization, internationalization), Stimulus decidedly assumes a contained scope:
The documentation page provides the following example of HTML source:
<!--HTML from anywhere--> <div data-controller="hello"> <input data-hello-target="name" type="text"> <button data-action="click->hello#greet"> Greet </button> <span data-hello-target="output"> </span> </div>
If you’re a developer it’s almost certain that you’ve used Code Libraries. In simple terms, a Code Library is a collection of reusable code that you can use in your program.