blic async ValueTask DisposeAsync()
    {
        if(ExampleModule.IsValueCreated)
        {
            await ExampleModule.Value.DisposeAsync();
        }
    }
}</pre>
<p>For collocated JavaScript module, you need to change the path to JavaScript module. For example, you have the following folder tree:</p>
<p><img src="\tutorials\legacy-contents\blazor-wasm\dotnet6\add-javascript-to-blazor-412635\collocate-js-module-folder-tree.png" alt="collocate-js-module-folder-tree.png" width="400" height="188" /></p