In the example here: https://www.telerik.com/kendo-react-ui/components/buttons/button/
you use the "any" type for the event return. What is the proper type to use, and if "any" is really correct, please explain why. I usually think of "any" as the type to use when I don't understand what the proper type I should be using is. (same with newLogs though I'm not using logs, just seems unusual to see "any" used in library docs)
const ButtonContainer = () => {
const [logs, setLogs] = React.useState([]);
const handleDomEvent = (event: any) => {
let newLogs: any = logs.slice();
newLogs.unshift(event.type);
setLogs(logs);
};
return (
<>
<Button
onClick={handleDomEvent}
onMouseDown={handleDomEvent}
onMouseUp={handleDomEvent}
onFocus={handleDomEvent}
onBlur={handleDomEvent}
onKeyPress={handleDomEvent}
>
My Button
</Button>
<EventLog title="Event Log" logs={logs} />
</>
);
};