React 77 ⚛️ Loading States with Suspense
A loading state is not a spinner. It is a contract between the application and the user: the application has accepted the request, is working on it, and will show the result as soon as it is ready. The traditional way to implement this contract is a boolean flag—const [isLoading, setIsLoading] = useState(true)—checked at the…