Fire a Stimulus Controller Action on a Click Event
In our Stimulus App, we change the
connect method to a
greet action (this method name can be anything.
We then wire that action up to our HTML button by adding
data-action to it and passing the function that we want to fire, in this case, its