https://github.com/devjubayr/react_suspense
react suspense and error boundary
https://github.com/devjubayr/react_suspense
Last synced: 5 days ago
JSON representation
react suspense and error boundary
- Host: GitHub
- URL: https://github.com/devjubayr/react_suspense
- Owner: devjubayr
- Created: 2025-10-06T05:22:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-10-06T07:01:44.000Z (10 months ago)
- Last Synced: 2026-07-16T02:34:19.918Z (5 days ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Understand React suspense and error boundary
- **Learn ` Suspense>` Component**
Handling promises In component
1. The child component first time must return a Promise.
2. When Suspense re-render, it must get Promise as resolved. Otherwise fallback always shown(loading is true)
- **Learn ` ErrorBoundary>` Component**
Handle error and catch a error in a boundary by wrapping the component from - `npm i react-error-boundary`