window.addEventListener('DOMContentLoaded', myFunc);
If your class doesn't extend another provider, you should always prefer using constructor-based injection.
как внутри action использовать другой action
dispatch
, его и вызывайтеwebpack serve
<button class="btn is-primary">text</button>
<button class="btn is-secondary">text</button>
или
<button class="btn btn--primary">text</button>
<button class="btn btn--secondary">text</button>