https://github.com/raunofreiberg/async-react-demo
Unofficial source code of the React Async rendering demo
https://github.com/raunofreiberg/async-react-demo
async react suspense
Last synced: 2 months ago
JSON representation
Unofficial source code of the React Async rendering demo
- Host: GitHub
- URL: https://github.com/raunofreiberg/async-react-demo
- Owner: raunofreiberg
- Created: 2018-06-20T15:28:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T06:10:32.000Z (over 2 years ago)
- Last Synced: 2025-03-24T03:56:03.660Z (3 months ago)
- Topics: async, react, suspense
- Language: JavaScript
- Homepage: https://build-tfzbskezhj.now.sh/
- Size: 4.01 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a replication of the React Async rendering implementation that was displayed at JSConf Iceland. Largely based on the [code that Andrew published after his Zeit talk](https://github.com/acdlite/suspense-ssr-demo)
Please note that none of these features are production-ready, do not take them for granted nor use in production.
# Usage
You can play around with how long the simulated network requests take place in `src/api.js`.
By default, fetching the movie details takes 3 seconds. Fetching reviews on the other hand takes 5 seconds with a fallback delay of 1 second.To run locally:
`yarn` or `npm install`
`yarn start` or `npm start`