Vue supports JSX, but it is by no means the default. https://vuejs.org/guide/extras/render-function.html
Re:React is a fractal of bad design
by mattigames on Wednesday March 08, 2023 @10:23AM
(#35070103)
Yes 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!')
)
)You should give Clojurescript a serious look. You can use that approach, but the resulting code is... well, readable.
Re:React is a fractal of bad design
by mattigames on Wednesday March 08, 2023 @05:54PM
(#35075923)
There is nothing readable about JSX, "<" will always mean minus-than and ">" will always be greater-than.
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?