News for hackers. Stuff that matters.
Re:Proton Native – React Native for the desktop by crooked-v on Wednesday May 02, 2018 @09:05PM (#16982539)
JSX is JS. While there's technically 'parsing' involved, it's fundamentally just syntactic sugar:

    import { createElement as e } from 'whatever'

    return e(App, {}, [
      e(Window, { title: 'Example', size: { w: 300, h: 300 }, menuBar: false }, [
        e(Button, { stretchy: false, onClick: () => console.log('Hello') }, [
          'Button'
        ])
      ])
    ])
Re:Proton Native – React Native for the desktop by c-smile on Wednesday May 02, 2018 @09:11PM (#16982570)
"JSX is JS"

It is not, https://facebook.github.io/jsx/

It is handled by transpiler - one more parsing layer in loading sequence of your application.

Re:Proton Native – React Native for the desktop by azerothian on Wednesday May 02, 2018 @11:24PM (#16983129)
sounds like you have your project configured wrong, transpiling should impact compilation not the loading aspect of your application
Re:Proton Native – React Native for the desktop by mlsarecmg on Thursday May 03, 2018 @03:29AM (#16984029)
The transpiler is a build build (a babel plugin), it isn't even a part of the application nor does it run while loading. The snippet above turns into a bunch of nested functions.
Re:Proton Native – React Native for the desktop by tannhaeuser on Thursday May 03, 2018 @01:16AM (#16983512)
No it isn't, in the sense that it's not part of a language spec for JavaScript, like E4X (now deprecated) once was considered to become. But I guess E4X's problem was that it was too far ahead of its time and had XML in its name.

[1]: https://developer.mozilla.org/en-US/docs/Archive/Web/E4X