News for hackers. Stuff that matters.
Re:React is a fractal of bad design by bern4444 on Wednesday March 08, 2023 @02:41AM (#35066330)
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?

Re:React is a fractal of bad design by yurishimo on Wednesday March 08, 2023 @04:16AM (#35066882)
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!')
        )
    )
Re:React is a fractal of bad design by sli on Wednesday March 08, 2023 @04:10PM (#35074771)
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.