🔰 Introduction If you're building a general-purpose Razor component in Blazor, you've probably wanted to expose the DOM events happening inside it as the component's own event callbacks. The OnClick event is a classic example. So, as a first try, we might implement a MyButton component like this: button @onclick="InternalOnClick"> Click me button> @code { [Parameter] public EventCallbackMous

Things to Watch Out For When Creating Components That Relay DOM Events in Blazor
jsakamoto·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.