Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #26798
@mayur-ekbote ... Would you like to take a look at this?
See if this lays out the approach and would've helped with the editable
<div>s scenario. I never did find out why Javier said "JSObjectReference." I don't see howIJSObjectReferenceis relevant. Perhaps, he meant to sayDotNetObjectReference. The code for theListItem2andCallDotNetExample7components can be reached via the links below. They're in thedotnet/blazor-samplesrepo, and the code is pulled into the article from there.I made the example almost exactly like the preceding list item example, so readers can see these approaches in a SxS format. Because I'm using another list item component named "ListItem," you'll see that I'm renaming the one in the Component instance .NET method helper class section to
ListItem1so that I can have the new example namedListItem2.Internal Review Topic (links to section)
ListItem2atdotnet/blazor-samplesCallDotNetExample7atdotnet/blazor-samples