Suspense (React) is a feature in React that lets components “pause” while they wait for data or code — and show a temporary placeholder instead of breaking.
Why use Suspense instead of just showing “loading”?
React apps are often built with pieces that rely on stuff from a server (like user info or product listings). Without Suspense, you’d have to write a bunch of code to handle loading states manually. With it, you can just wrap your component and tell React: “Hey, if this isn’t ready, show this loading spinner.”
It’s kind of like getting chips at a restaurant while your meal is being cooked — you’re not just sitting there staring at the kitchen door. It makes apps feel smoother and faster, even if the actual wait time is the same.
Want to see it in action? Here’s the official React Suspense docs.
« Back to Glossary Index