3 ms·
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.
by s_y_n_t_a_x 7y ago
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.