I'm new to Blazor and while designing components I ran across an example of someone using a binding method that I wasn't familiar with.
They are using EventCallback.Factory.CreateBinder() instead of the binding techniques shown in relevant Microsoft documements detailing how to bind data.
This is how they are accomplishing binding:
@onchange="EventCallback.Factory.CreateBinder<string>(
this,
value => CurrentValueAsString = value,
CurrentValueAsString,
null)"
But the way that I have seen it in the past involved a method with a specific name like 'ValueChanged' as an event callback to take care of the binding. As shown here.
Are there any downsides to using the EventCallback.Factory.CreateBinder() method instead of the way outlined in the Microsoft documents?
When I googled the CreateBinder() method, I saw that it was marked for "internal use only". Does this mean that I'm not supposed to use it? Shown as "internal use only" here.