Blazor JavaScript Interop: Bridging .NET and Browser APIs
Calling JavaScript from C#
Blazor WebAssembly runs inside the browser, but sometimes you need to reach beyond the sandbox and use native browser features—localStorage, geolocation, or even a third-party map. The runtime exposes IJSRuntime for exactly that purpose.
Creating a Facade Function
Start with a plain JavaScript function that will act a ...
Posted on Fri, 10 Jul 2026 18:08:33 +0000 by ReD_BeReT
Making localStorage Reactive in React Applications
Problem Statement
When building React applications that rely on localStorage for storing user preferences like timezone settings, you might encounter a common issue: changes made to localStorage don't trigger UI updates in components that depend on that data. The stored values only become visible after a page refresh, which creates a poor user ...
Posted on Wed, 20 May 2026 20:12:54 +0000 by Valord