> For the complete documentation index, see [llms.txt](https://docs.mapbox.com/mapbox-search-js/llms.txt)

# Other Hooks

This page includes reference documentation for general hooks in the `Search JS React` framework.

### useEvented

A React hook to register an event listener on a Search JS Core Evented object.

[Evented](https://docs.mapbox.com/mapbox-search-js/mapbox-search-js/api/core/search_session/#evented) is a base class that is inherited by [SearchSession](https://docs.mapbox.com/mapbox-search-js/mapbox-search-js/api/core/search_session/#searchsession).

#### Parameters

| Name | Description |
| --- | --- |
| **evented** ([Evented](https://docs.mapbox.com/mapbox-search-js/mapbox-search-js/api/core/search_session/#evented)<T> \| null)  |  |
| **eventName** K  |  |
| **cb** function (object: any): any  |  |

#### Returns

void

Was this section on useEvented helpful?[Yes](null)[No](null)