like as microsoft document you set static string for value in CascadingValue
Blazor learning path
But I couldn't do this, and in Visual Studio 2022 and .NET6, I have a syntax error.

Thats because razor syntax is searching a variable called Throwback Thursday.
Try using
<CascadingValue Name="DealName" Value=@("Throwback Thursday")>
</CascadingValue>
This markup will take string value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With