> For the complete documentation index, see [llms.txt](https://bemtv.gitbook.io/bemtvjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bemtv.gitbook.io/bemtvjs/run-for-all.md).

# 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:

```javascript
import { _ } from "bemtv";

const { run } = _`App`();

run(()=>{});
```
