Find file History
mmarkelov and gaearon Update Readme (#14176)
Replace core with react, dom-client with react-dom
Latest commit d204747 Nov 12, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Fix fixture title (#13377) Aug 13, 2018
src Fix Suspense fixture (#13932) Oct 23, 2018
.gitignore Move async fixtures (#13304) Aug 1, 2018 Update Readme (#14176) Nov 12, 2018
package.json Change async fixtures to use schedule Sep 4, 2018
yarn.lock Rename "react-scheduler" package to "schedule" (#13543) Sep 3, 2018

IO "suspense" demo

What is this fixture?

This is a demo application based on Dan Abramov's recent JSConf Iceland talk about React.

It depends on a local build of React and enables us to easily test async and "suspense" APIs in a more "real world app" like context.

Can I use this code in production?

No. The APIs being tested here are unstable and some of them have still not been released to NPM. For now, this fixture is only a test harness.

How do I run this fixture?

Clone the React repository.

Follow these steps:

# 1: Build react from source
cd /path/to/react
yarn build react-dom/index,react/index,react-cache,scheduler --type=NODE

# 2: Install fixture dependencies
cd fixtures/unstable-async/suspense/

# 3: Run the app
yarn start