3 ms·
That's why i love React Suspense very much. It offers the flexibility in the hand of developers instead of some inflexible native API. <Suspense fallback={<Pla
by revskill 8y ago
That's why i love React Suspense very much. It offers the flexibility in the hand of developers instead of some inflexible native API.
<Suspense fallback={<Placeholder />}>
<Image src="" />
</Suspense>
When SSR, this one will show a real <img> tag.
When SPA, this one will lazy load image.
A Win-Win for both devs and customers.