4 ms·
No but writing HTML directly in your class is soooo late 90s like when we used to write Java Servlets! All this has happened before. It will happen again
by w4tson 9y ago
No but writing HTML directly in your class is soooo late 90s like when we used to write Java Servlets!
All this has happened before. It will happen again
- hajile 9y agoYou write syntactic sugar <div className="foo">abc</div> to turn into React.createElement('div', {className:'foo'}, 'abc') which generates an object {...stuff, tag: 'div', attrs: {className: 'foo'}, children: 'abc'}. Your final object is then compared to the previous object and any differences are manually written to the DOM in an efficient order. Hardly comparable to Java Servlets.