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.
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 ?