3 ms·
Because you’ll have to switch context each time you look into browser developer tools, MDN docs, etc.
by sesm 3y ago
Because you’ll have to switch context each time you look into browser developer tools, MDN docs, etc.
- recursive 3y agoBrowsers have no support for JSX, nor is it documented at MDN.
- sesm 3y agoLet me clarify: React team could choose any syntax of JSX, or even have no syntax and use nested data structures. They've chosen HTML-like syntax for developer convenience. My first experience with React was through ClojureScript and Om (back in 2014), and I can tell you that constantly translating back and forth between 2 vastly different syntaxes hurts.
- wruza 3y agoWorse thing is that html snippets are not directly pasteable into your code. For this I wrote me html-to-m tool which I can run on a visual selection in vim with a hotkey. There is a web-based one, but I find its formatting too awful to use.
- SpaghettiCthulu 3y agoIf copy pasting is that important to you, I don't think you're a good developer.