News for hackers. Stuff that matters.
Re:Proton Native – React Native for the desktop by diroussel on Thursday May 03, 2018 @01:57AM (#16983648)
Can you have higher order components? In react this is a function that returns a component, often taking another component as a parameter.

What's nice about react is that the JSX syntax is just sugar that converts to function calls.

Re:Proton Native – React Native for the desktop by jcelerier on Thursday May 03, 2018 @04:49AM (#16984340)
> Can you have higher order components? In react this is a function that returns a component, often taking another component as a parameter.

The standard way to do this in QML is using the Loader object: http://doc.qt.io/qt-5/qml-qtqml-component.html

You can also go full-eval of course: http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation...