run() - For all
It may happen that we need to execute a function that affects all instances of a component, for that we can use the run()
method that will internally execute the function passed to each instance of the component created up to that moment:
import { _ } from "bemtv";
const { run } = _`App`();
run(()=>{});
Last updated