A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://Tarektouati.github.io/vue-use-web/functions/event-listener.html below:

Website Navigation


Event Listeners | useWeb

# Event Listeners

The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target. Common targets are Element, Document, and Window, but the target may be any object that supports events (such as XMLHttpRequest).

This composition function adds a managed event listener to the given object, meaning it will automatically remove the listener when the component unmounts.

# State

useEventListener Doesn't return any state.

# Example # Demo

TODO: Add cool live example!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4