News for hackers. Stuff that matters.
Re:The Truth about Svelte by farazzz on Wednesday July 12, 2023 @01:51AM (#36690881)
React is JSX*

Nothing preventing them from making an <If condition={…}>…<Else>… component

Re:The Truth about Svelte by MrJohz on Wednesday July 12, 2023 @02:57PM (#36699951)
And this is typically how conditionals work in SolidJS, which also uses JSX but adds extra core components to handle conditionals and iteration. In fairness, this is largely because they can better support the reactivity model that SolidJS uses, but it's a convenient side effect.