Re:Exact – a new cross platform UI framework by the Expo team
by doodlesdev on Wednesday November 11, 2026 @06:10AM
(#50452030)
> till this day you can't use linq to render a sequence of elements. Like people.Select(p => <div>{p.FullName}</div>);
In Blazor, you can do it with something like this: <div>
@people.Select(p => @<div>@p.FullName</div>)
</div>
Rendering-wise, it's better to use a @foreach [0], to avoid creating too many rendering fragments, but it works.[0]: https://learn.microsoft.com/en-us/aspnet/core/blazor/compone...
Re:Exact – a new cross platform UI framework by the Expo team
by miffy900 on Wednesday November 11, 2026 @06:41PM
(#50460634)
that is not equivalent - for instance you can't save the result to a variable and work on it further:
var thePeople = people.Select(p => <div>{p.FullName}</div>);
var tranformed = thePeople.Select(d => d.Children.First()).DoSomethingElse();
The more I use blazor, the more I realise it's just old-school Webforms with a succinct pseudo-C#-syntax. it's very limiting compared to JSX
till this day you can't use linq to render a sequence of elements. Like people.Select(p => <div>{p.FullName}</div>);
it's such a shame XAML and Razer syntax haven't evolved.