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
- Host: GitHub
- URL: https://github.com/webmaeistro/react-concurrent-suspense
- Owner: webmaeistro
- License: mit
- Created: 2020-04-16T17:46:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T18:42:27.000Z (about 6 years ago)
- Last Synced: 2025-03-31T23:39:40.055Z (about 1 year ago)
- Topics: experimental, react, react-concurrent, react-experiments, react-suspense
- Language: JavaScript
- Homepage: https://react-suspense-experimental.netlify.app/
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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)