Suspensify
Easy way to convert any promise to suspended promise
yarn add suspensify
Demo: https://pie6k.github.io/suspensify/
;;; // first - let's say we have some regular, async function // now we convert it to suspended function; // now we can just use it inside any component like it is sync function // let's create some simple component // last step is to create suspense loading fallback // and start the apprenderApp /, document.getElementById'app';