3 ms·
FYI: Understanding some very basic DOM manipulation is important even if you are working with very modern tools. Case in point: I'm working on a shipping Blazo
by gwbas1c 3y ago
FYI: Understanding some very basic DOM manipulation is important even if you are working with very modern tools.
Case in point: I'm working on a shipping Blazor WASM application, and I've had to drop into the DOM twice:
1: We're still using Leaflet.js for a map component. This occasionally requires some DOM calls to adapt between Blazor's worldview and Leaflet's worldview.
2: Blazor WASM loads slowly, so we put up a splash animation in HTML. Removing the splash animation at the "right" time requires DOM manipulation. (Because we want to keep the splash animation up while the Blazor side makes additional calls, so we use DOM manipulation to hide the Blazor-based UI until we've loaded everything.)