4 ms·
JSX has been around for 7 or so years... that's a good amount of time. Over half of your 13 years :) Do you avoid JSX when using Vue or other libraries that su
by bern4444 4y ago
JSX has been around for 7 or so years... that's a good amount of time. Over half of your 13 years :)
Do you avoid JSX when using Vue or other libraries that support JSX? Are you invoking the library function directly - React.createElement or vue's equivalent instead?
- yurishimo 4y agoVue supports JSX, but it is by no means the default. https://vuejs.org/guide/extras/render-function.html https://vuejs.org/guide/extras/render-function.html
- mattigames 4y agoYes I do, the only language I use for my personal projects is Typescript; I think JSX, .vue, .svelte they are all a mistake, JS is more than enough if you really need to use it to compose html. div('#wrapper', div('.container', span('.big', `It's not that hard`), button('.red', {route: home}, 'Home!') ) )
- sli 4y agoYou should give Clojurescript a serious look. You can use that approach, but the resulting code is... well, readable.
- mattigames 4y agoThere is nothing readable about JSX, "<" will always mean minus-than and ">" will always be greater-than.