3 ms·
> one-to-one syntactic sugar for a createElement call Used to be, but you are right that JSX is a rather thin syntax over function calls. (The modern JSX trans
by koito17 3y ago
> one-to-one syntactic sugar for a createElement call
Used to be, but you are right that JSX is a rather thin syntax over function calls. (The modern JSX transform now uses a _jsx and _jsxs call, depending on whether you are rendering a single child or an array of children).
See https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html https://legacy.reactjs.org/blog/2020/09/22/introducing-the-n...