@page "/index"


<HeroComponent />

<!--body content start-->
<section class="body-content ">
    <div style="height: 70vh;"></div>
    

</section>
<!--body content end-->
<!--footer start 1-->

<!--footer 1 end-->
@code {
    [Inject]
    public IJSRuntime? JSRuntime { get; set; }

    private IJSObjectReference? _jsModule;

    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        base.OnAfterRender(firstRender);

        if (firstRender)
        {
            _jsModule = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_content/SharedUI/assets/exampleJsInterop.js");
            await _jsModule.InvokeVoidAsync("getMessage");
        }
    }
}
