2 ms·
The first one is imperative and locks the implementation to use the Document object and the createElement function. The second one is declarative and leaves it
by capableweb 7y ago
The first one is imperative and locks the implementation to use the Document object and the createElement function.
The second one is declarative and leaves it up to the receiver to handle however they seem fit.
I'm not arguing one is better or worse, or that we would be better off if we we're using the JSX way with native support in the browsers, just explaining how I see the differences between the two.