5 ms·
Yeah, jsx implements this idea the right way. Of course that also means it’s not a template language :)
by scrollaway 3y ago
Yeah, jsx implements this idea the right way. Of course that also means it’s not a template language :)
- madeofpalk 3y agoDoes JSX count as 'string interpolation'?
- yuchi 3y agoBy definition, no. JSX is syntax sugar to some underlying function that transforms a JSX element (made by tagName, props, children) into something else. That could be a string, but usually it produces an abstract node representation, an object that collects those three parts.