3 ms·
Because the rest of your application is Javascript. Less cognitive burden when you switch to working on different layers of your application.
by tomelders 9y ago
Because the rest of your application is Javascript. Less cognitive burden when you switch to working on different layers of your application.
- overcast 9y agoExcept JSX isn't JavaScript, and no one uses React without it. So it's arguably just as much of a cognitive burden.
- irrational 9y agoWait, do you really experience cognitive burden when switching between html, js, and css? It surprises me if you do.
- tomelders 9y agoI'm talking about switching between a context where there are first class functions that can be easily passed around, to a context where there's some archaic and magical, non idiomatic convention based on string based dependency injection, or magical way of writing attributes.