4 ms·
DOM and HTML is different things. Are you sure that you write HTML when you use React? HTML is one of the ways to build DOM. But not the only one. In very dyna
by iofjuupasli 11y ago
DOM and HTML is different things. Are you sure that you write HTML when you use React?
HTML is one of the ways to build DOM. But not the only one.
In very dynamic parts of site JS is better, which is the case for React.
But even for static parts, HTML is just familiar way to describe what should be displayed. I don't see anything wrong in use js syntax for that. Especially when js is used under the hood.
- foldr 11y agoThis is a pretty trivial issue of a preference for one syntax over another. I'm not really interested in arguing about it. I personally find it useful to be able to use HTML syntax.