4 ms·
React isn’t templating though.
by nwienert 1y ago
React isn’t templating though.
- n2h4 1y ago[dead]
- ASalazarMX 1y agoRespect for focusing on semantics but not contesting the CPU and bandwidth waste. That takes honesty.
- ivape 1y agoThat's kind of like saying React isn't just a bunch of a functions (it is). What do the JSX templates compile down to?
- nwienert 1y agoMissed this but - there’s a very meaningful difference between templates and React at least how most people think of templates. React lets you return dynamic tree structures and insert code anywhere inline in that structure. Most templates explicitly don’t allow that for good reason. Further, most but not all templating frameworks have special syntax for conditional logic and loops. If JSX is templating then templating has no meaning. Would createElement() be a template? In that case all functional programming is.