import { Controller } from '@hotwired/stimulus' export default class extends Controller { static targets = [ 'burger', 'navbar' ]; toggle(event) { [ this.burgerTarget, this.navbarTarget ].forEach((target) => { target.classList.toggle("is-active"); }); } }