6 ms·
So replace HTML with the JSON? out({command: "new_text_box", border: "grey", content: "hi there!"}) looks a lot like <div style="background: grey">
by dexwiz 9y ago
So replace HTML with the JSON?
out({command: "new_text_box",
border: "grey",
content: "hi there!"})
looks a lot like
<div style="background: grey">hi there!<div>
The browser is complicated, because its an abstraction that runs in almost every modern environment. Once WASM gets document bindings, writing web code will become language agnostics.
Also how are you going to bind interactions with the UI? I see a global event listener, but that would become unmanageable.
- nixpulvis 9y agoThe real problem with the "browser" is how bad they are at being the same as each other.
- lallysingh 9y agoHe didn't say he needed it to work further than on localhost. Especially for the 'simple' use case, the browsers will work close enough to the same.
- ex3ndr 9y agoYeah, and if someone don't like browsers he always can do something with React Native.