Tag

ErrorBoundary

1 views collected around this technical thread.

Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 27, 2021 · Frontend Development

Mastering React Error Boundaries: Build a Flexible Error‑Handling Wheel

This tutorial walks through why catching front‑end component errors is essential, demonstrates how to implement a custom React ErrorBoundary with flexible fallback options, reset logic, higher‑order component wrappers, and hooks, and provides complete TypeScript examples and best‑practice summaries.

ErrorBoundaryHigher-Order ComponentTypeScript
0 likes · 19 min read
Mastering React Error Boundaries: Build a Flexible Error‑Handling Wheel
Tencent Music Tech Team
Tencent Music Tech Team
May 25, 2018 · Frontend Development

Key New Features of React 16.x: Render Optimization, Error Boundaries, Portals, Context API, and Ref API

React 16 introduced major enhancements—including array returns and Fragment syntax for cleaner rendering, error‑boundary components to catch UI crashes, portals for rendering outside the DOM hierarchy, a stable Context API for global data, and new Ref utilities like createRef and forwardRef—greatly improving ergonomics, performance, and encouraging upgrades from older versions.

ContextAPIErrorBoundaryPortal
0 likes · 11 min read
Key New Features of React 16.x: Render Optimization, Error Boundaries, Portals, Context API, and Ref API