News for hackers. Stuff that matters.
Re:React Won by Default – and It's Killing Front End Innovation by TomaszZielinski on Tuesday September 16, 2025 @08:40AM (#45261435)
I can’t recall a single time where I would want to put JSX in an „if” statement.. In fact I can’t recall a single time where I would want to use JSX in a different context than the return value of a render phase.

So from my personal experience the things you mentioned are non-issues in practice. Do you have a different experience?

Re:React Won by Default – and It's Killing Front End Innovation by jitl on Tuesday September 16, 2025 @11:43AM (#45263802)
yes
Re:React Won by Default – and It's Killing Front End Innovation by mike_hearn on Tuesday September 16, 2025 @01:53PM (#45265509)
I was actually meaning the hooks and memoization stuff not JSX. I think JSX can be put inside conditional logic and loops.
Re:React Won by Default – and It's Killing Front End Innovation by TomaszZielinski on Tuesday September 16, 2025 @05:13PM (#45268135)
Ah OK, I see it now—I focused too much on the „magic syntax”.

As for hooks, I guess I mentally treat them as magic that lives in its own lane, and so I've never really thought that I could do anything with them, other than what the manual prescribes.