News for hackers. Stuff that matters.
Re:Redux – Not Dead Yet by kabes on Thursday April 26, 2018 @04:23AM (#16929996)
I get that JSX is a DSL that ends up being javascript. But there are a lot of arguments why we don't write HTML directly between the PHP which still apply to JSX, even though it's not HTML. For me as a programmer it doesn't matter what happens under the hood.

Whether I type `return (<button>foo</button)` in react or echo '<button>foo</button>' in php, it's the same thing from my point of view as an application builder.

Re:Redux – Not Dead Yet by lmm on Thursday April 26, 2018 @08:11AM (#16931115)
> there are a lot of arguments why we don't write HTML directly between the PHP which still apply to JSX, even though it's not HTML.

Such as? This is the point in dispute, so you need to actually make specific arguments if you think they apply.