How to circumvent importing Stimulus within every controller If you’re familiar with Stimulus at all, the below bog standard controller should look very familiar. In fact I’ve nicked it from their homepage! import { Controller } from “stimulus” export default class extends Controller { static targets = [“name”, “output”] greet() { this.outputTarget.textContent = `Hello, ${this.nameTarget.value}!`…

Read More