Tag

Error Boundary

0 views collected around this technical thread.

ByteFE
ByteFE
Oct 18, 2023 · Frontend Development

Using React’s Built‑in Features to Handle Loading and Error States with Promises

This article explains how to display loading and error states in React by passing Promise objects through props, context, or state libraries, leveraging Suspense, ErrorBoundary, and custom hooks such as usePromise and use to simplify asynchronous UI patterns while avoiding unnecessary re‑renders and side‑effects.

Error BoundaryLoading StatePromise
0 likes · 13 min read
Using React’s Built‑in Features to Handle Loading and Error States with Promises
政采云技术
政采云技术
May 24, 2020 · Frontend Development

React.lazy and Suspense: Dynamic Component Loading and Error Handling in Frontend Development

This article explains how React.lazy and Suspense enable on‑demand component loading, describes the underlying webpack dynamic import mechanism, shows how to configure fallback UI and error boundaries, and provides practical code examples for modern frontend performance optimization.

Error BoundaryLazySuspense
0 likes · 13 min read
React.lazy and Suspense: Dynamic Component Loading and Error Handling in Frontend Development