3 ms·
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 cod
by tudorizer 7y ago
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 7y agoWhy 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 7y agoJSX 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.