An open API service indexing awesome lists of open source software.

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

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`