Re:React is 10 years old
by yazaddaruvala on Tuesday May 30, 2023 @05:56PM
(#36131503)
Yes, aware. Its cool, but the ergonomics feel very much the way I felt about Node.js with callbacks.
There is a different type of delight that comes from the ergonomics on async/await. This is the big jump React Suspense also needs to make. I am not smart enough to suggest anything here tho. I just know the framework (including React) that can give me that async/await delight while using Suspense will dominate!
<Suspense fallback={<LoadingSkeleton />}>
</Suspense>Where your Server Component then looks as follows:
async function MyComponent() {
}https://nextjs.org/docs/getting-started/react-essentials