3 ms·
Apologies for the noob question, but why reinvent the wheel when we have HTML/DOM/CSS?
by coryvirokmobile 4y ago
Apologies for the noob question, but why reinvent the wheel when we have HTML/DOM/CSS?
- deleted 4y ago[deleted]
- __jem 4y agoSo that you don't have to ship an entire web browser for your application.
- chriskrycho 4y agoBesides the (correct!) sibling comment: the idea here is to provide underlying primitives which can then be used to express UI in a variety of contexts, first of all native UIs but (as the post notes at the end) also including the DOM. For example, people have implemented experiments which use SwiftUI for authoring HTML, and you can use React to author native UI (React Native, but also e.g. the Raycast widget system), text UIs, etc.