Lurker News

Comments (156) 28 threads

Show all comments

Showing thread 27 of 28

tudorizer2 replies#
This also doesn't mix pseudo-HTML (JSX?) with JS code, so that's cool.

As someone who has sort of lost contact with the front-end world, it's nice to see a coding TL;DR.

frosted-flakes#
Why is it good? JSX is just a declarative syntax for creating DOM elements (usually), and in practice it works really well.
s_y_n_t_a_x#
JSX is syntactic sugar for nested function calls, it is JavaScript.

That's why you can do anything (declarative) in them. You can loop, have conditionals, etc. without having to learn a template syntax.