Too Long; Didn't Read
Hook takes 2 arguments: initial value and delay in milliseconds. It can be used for example for cases when we want to send a search request for autosuggestions in fields. Hook is very small and simple: useCustomEvent = ( (Event): AppCustomEvents, (Event listener: EventListenerOrEventOrEventObject) Hook work with generics as we can work with different data types. Hook will execute on every value or delay change and return the delayed value in the target timeout.