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

https://github.com/webmaeistro/react-concurrent-suspense

react: datafetch using concurrent mode and suspense
https://github.com/webmaeistro/react-concurrent-suspense

experimental react react-concurrent react-experiments react-suspense

Last synced: 9 months ago
JSON representation

react: datafetch using concurrent mode and suspense

Awesome Lists containing this project

README

          

# react-datafetch-suspense-used

demo:https://react-suspense-experimental.netlify.app/

testing suspense experimental-react

React 16.6 added a component that lets you “wait” for some code to load and declaratively specify a loading state (like a spinner) while we’re waiting:

```
const ProfilePage = React.lazy(() => import('./ProfilePage')); // Lazy-loaded

// Show a spinner while the profile is loading
}>

```
Suspense for Data Fetching is a new feature that lets you also use to declaratively “wait” for anything else, including data. This page focuses on the data fetching use case, but it can also wait for images, scripts, or other asynchronous work.

experiment by:
Martin Andersen (@webmaeistro)