(14/30)Learning Blazor Together: JavaScript Interop
Although Blazor does not require JavaScript, some existing JS libraries are still very convenient. We cannot discard them all just because we don't want to use JavaScript. Blazor provides methods to call JavaScript, a scenario called JavaScript interoperability (JavaScript interop for short). This article will implement a confirmation dialog for the Delete button, because deletion is an important function and users should not easily delete with just one click.