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