Correct way to mutate a component property in blazor
问题 I have two components, Child.razor and Parent.razor . The Child.razor HTML: <input type="text" value="@Text" /> The Child.razor C#: [Parameter] public string Text { get; set; } And the Parent.razor HTML: <Child @ref="child_1" /> <Child @ref="child_2" /> <Child @ref="child_3" /> Parent.razor C#: Child child_1; Child child_2; Child child_3; void SetText(Child item, string text) { item.Text = text; } I get a warning on the item.Text = text : Warning BL0005: Component parameter 'Text' should not