Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rich Harris joins Vercel to work on Svelte full time. Parent comment
div Await promise={mypromise} div Loading… {res => res.map(…)} div Error: {err => err.message}
Isn’t it easier in both react and vue to create Await component with children=(ifwaiting, ifresolved, ifrejected) than suffering all over the code?
Edit: I messed data flow up in the error handler, wontfix but you get the idea
There are no comments on this comment yet.
Isn’t it easier in both react and vue to create Await component with children=(ifwaiting, ifresolved, ifrejected) than suffering all over the code?
Edit: I messed data flow up in the error handler, wontfix but you get the idea