How to add a target dynamically

I’ve taken a look at this, but I haven’t seen the targets.find syntax documented anywhere: https://github.com/stimulusjs/stimulus/issues/41

Is there a reliable way to dynamically append a target, or a “best” syntax for doing so?

4 Likes