public void Alert()
 {
     EventHorizonBlazorInterop.RunScript(
         "alert",
         "alert('hi')",
         new { }
         );
 }
        /// <summary>
        /// Takes in the Blazor ElementReference and convertes it into a class that the EventHorizon Interop can work with.
        /// </summary>
        public static async Task <Element> ToInteropElement(
            this ElementReference eleRef
            )
        {
            await EventHorizonBlazorInterop.RunScript(
                "toInteropElement",
                "window[`eleRef${$args.id}`] = $args.eleRef;",
                new { id = eleRef.Id, eleRef }
                );

            return(EventHorizonBlazorInterop.GetClass <Element>(
                       "window",
                       $"eleRef{eleRef.Id}",
                       entity => new Element(entity)
                       ));
        }