Skill / SKILL.md

Use Js Interop

managedcode/dotnet-skills

Add, review, or fix JavaScript interop in Blazor components. USE FOR: calling JavaScript from Blazor, calling .NET from JavaScript, collocated .razor.js modules, IJSRuntime, IJSObjectReference lifecycle, DotNetObjectReference, ElementReference, timing rules for when JS is available, IAsyncDisposable disposal of JS references, server-side JS interop safety. DO NOT USE FOR: general Blazor component authoring without JS interop needs (use author-component), forms (use collect-user-input).
2 views 527 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Add, review, or fix JavaScript interop in Blazor components. USE FOR: calling JavaScript from Blazor, calling .NET from JavaScript, collocated .razor.js modules, IJSRuntime, IJSObjectReference lifecycle, DotNetObjectReference, ElementReference, timing rules for when JS is available, IAsyncDisposable disposal of JS references, server-side JS interop safety. DO NOT USE FOR: general Blazor component authoring without JS interop needs (use author-component), forms (use collect-user-input).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/managedcode/dotnet-skills' skill-source

Use the complete skill-source/catalog/Frameworks/Official-DotNet-Blazor/skills/use-js-interop directory with your client’s skill installer.

  • catalog/Frameworks/Official-DotNet-Blazor/skills/use-js-interop

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory catalog/Frameworks/Official-DotNet-Blazor/skills/use-js-interop

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
33e9f91c226cbf8eae5a6914b8c2ce0c91c67658273e2145ff594e214579258a
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills