So let's recap.
* You don't know JSX
* You have no idea of the specific example posted in this thread that I'm speaking of
* You have no idea about WPF and what is a view model
But nonetheless you feel entitled to discuss about things in which you have zero knowledge.
This is the JSX code posted in this thread:
<div>
{listOfThings.map(thing => thing.isX ?
<X thing={thing} />
<Y thing={thing} />
)}
</div>
Instead of this monstrosity in XAML would be like this:
<ItemsControl ItemsSource={Binding ListOfThings} />
But of course for you is better the JSX code.
Luckily for me you will never have to review any of my pull requests, I seriously doubt that you can accept something that you don't understand.