Re:Proton Native – React Native for the desktop
by uryga on Wednesday May 02, 2018 @09:04PM
(#16982535)
Looks nice for a short example, but later you'd also need some stuff like:
To me, imperative widget creation gets tedious and hard to read pretty fast. I'm not a fan of the many parsing layers involved in the JS example either, but I really appreciate the declarativity they enable.
[ Parent
| on HN ]
Re:Proton Native – React Native for the desktop
by c-smile on Wednesday May 02, 2018 @09:15PM
(#16982586)
I am not saying that you don't need markup at all.
Window content can still use markup. But it is not clear why do you need it for defining Application and Window abstractions.
In browsers DOM element is a subject of style applicability and events handling. But why do you need DOM nodes for application and window ?
Re:Proton Native – React Native for the desktop
by always_good on Wednesday May 02, 2018 @09:24PM
(#16982629)
What does your trivial wrapper actually improve though?
window = (...children) => <App><Window>{...children}</App></Window>
Over the years I've learned that some boilerplate isn't bad. In fact it means App and Window are implemented in the same abstraction that I'm using.