63

GitHub - jaredpalmer/react-conf-2018: React Conf 2018 Source Code for "Movi...

 5 years ago
source link: https://github.com/jaredpalmer/react-conf-2018
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Moving to React Suspense

By Jared Palmer at React Conf 2018.


This is the source code to the application I demo'd at React Conf 2018. It is a small slice of Spotify called Suspensify. It's built with create react app, reach router, and good ol' setState.

This repo is a bit gross. node_modules are checked in because I was unsure of the wifi situation and needed to lock in builds from react master while I built this out.

It's separated into 3 folders:

  • before-suspense is the initial state of the application.
  • conf-talk-progress is where we end up--the final state of my talk--so you can follow along.
  • after-suspsense is a version where every single thing that can be moved to suspense, has been moved to suspense. I did not get this far in my talk, but it's there for completeness / reference.

Running locally

cd conf-talk-progress
yarn start

Note the Ken Wheeler and Wale routes do not work. I didn't bother making fake data for them. Sorry. Only the Drake and Big Sean routes work (first 2 results).

What's it look like?

kapture 2018-10-29 at 15 50 42


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK