{"id":15504307,"url":"https://github.com/kentcdodds/concurrent-react","last_synced_at":"2026-04-01T20:29:31.907Z","repository":{"id":66052695,"uuid":"249001711","full_name":"kentcdodds/concurrent-react","owner":"kentcdodds","description":"React Suspense Egghead course","archived":false,"fork":false,"pushed_at":"2021-01-25T23:12:53.000Z","size":742,"stargazers_count":49,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T00:11:20.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://kcd.im/egghead-suspense","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kentcdodds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-21T15:14:50.000Z","updated_at":"2024-09-17T12:13:01.000Z","dependencies_parsed_at":"2023-06-17T23:46:03.825Z","dependency_job_id":null,"html_url":"https://github.com/kentcdodds/concurrent-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kentcdodds/concurrent-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fconcurrent-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fconcurrent-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fconcurrent-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fconcurrent-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/concurrent-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fconcurrent-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:17:08.756Z","updated_at":"2026-04-01T20:29:31.889Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concurrent React\n\n\u003e Improving UX with a faster, more predictable app.\n\n\u003e A NEW version of this project is available at:\n\u003e https://github.com/kentcdodds/react-suspense\n\n👋 hi there! My name is [Kent C. Dodds](https://kentcdodds.com)! This is a\nworkshop repo to teach you the fundamentals of React's (EXPERIMENTAL)\n[concurrent mode](https://reactjs.org/concurrent). This feature enables React to\nmake your app faster out of the box and it comes along with a few features that\nyou can use to improve your app's user experience (most notably the concept of\n\"Suspense\").\n\n[![Build Status][build-badge]][build]\n[![AppVeyor Build Status][win-build-badge]][win-build]\n[![Code Coverage][coverage-badge]][coverage]\n[![GPL 3.0 License][license-badge]][license]\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]\n\n## ⚠️ Warning ⚠️\n\nThis workshop material deals with **EXPERIMENTAL** features in React. Please do\nnot copy/paste any of the code you find here into a production application and\nexpect it to work. Even when the features are released they may not work the\nsame as demonstrated in this workshop material.\n\nThat said, the concepts in this workshop will very likely be applicable when\nthese features are stable, so enjoy the workshop!\n\n## Pre-Workshop Instructions/Requirements\n\nIn order for us to maximize our efforts during the workshop, please do the\nfollowing:\n\n- [ ] Setup the project (follow the setup instructions below) (~5 minutes)\n- [ ] Install and setup [Zoom](https://zoom.us) on the computer you will be\n      using (~5 minutes)\n- [ ] Install the React DevTools\n      ([Chrome](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)\n      (recommended),\n      [Firefox](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/))\n- [ ] Watch\n      [Use Zoom for KCD Workshops](https://egghead.io/lessons/egghead-use-zoom-for-kcd-workshops)\n      (~8 minutes).\n- [ ] Watch\n      [Setup and Logistics for KCD Workshops](https://egghead.io/lessons/egghead-setup-and-logistics-for-kcd-workshops)\n      (~24 minutes). Please do NOT skip this step.\n- [ ] Watch Dan Abramov's talk\n      [Beyond React 16 | JSConf Iceland 2018](https://www.youtube.com/watch?v=nLF0n9SACd4)\n      (33 minutes)\n- [ ] Go through my\n      [Learn React Hooks Workshop](https://kentcdodds.com/workshops/hooks), or\n      have the equivalent basic experience of using hooks. You should be\n      experienced with `useState`, `useEffect`, and `useRef`.\n- [ ] Go through my\n      [Advanced React Hooks Workshop](https://kentcdodds.com/workshops/advanced-react-hooks),\n      or have the equivalent experience. You should be experienced with\n      `useContext` and `useReducer` (experience with `useMemo` and `useCallback`\n      is a bonus).\n\nThe more prepared you are for the workshop, the better it will go for you.\n\n## Workshop Outline\n\nHere are the concepts we'll be covering:\n\n- Opting into React Concurrent Mode\n- Thinking in Suspense\n- The fundamentals of \"suspending\"\n- Structuring `\u003cReact.Suspense /\u003e` components with fallbacks\n- Using `useTransition`\n- Refactor an existing async interaction to suspense\n- The difference between the three data-fetching approaches:\n  - Fetch-on-Render (not using Suspense)\n  - Fetch-Then-Render (not using Suspense)\n  - Render-as-You-Fetch (using Suspense)\n- Using `\u003cReact.SuspenseList /\u003e` to coordinate multiple suspending components\n\n## System Requirements\n\n- [git][git] v2 or greater\n- [NodeJS][node] v8 or greater\n- [yarn][yarn] v1 or greater (or [npm][npm] v6 or greater)\n\nAll of these must be available in your `PATH`. To verify things are set up\nproperly, you can run this:\n\n```shell\ngit --version\nnode --version\nyarn --version # or npm --version\n```\n\nIf you have trouble with any of these, learn more about the PATH environment\nvariable and how to fix it here for [windows][win-path] or\n[mac/linux][mac-path].\n\n## Setup\n\nFor many of my workshops, you should be able to run them\n[entirely in the browser](https://codesandbox.io/s/github/kentcdodds/concurrent-react).\nHowever for this one, I recommend you work through the workshop on your own\ncomputer.\n\nTo do so, please follow these instructions.\n\nAfter you've made sure to have the correct things (and versions) installed (as\nindicated above), you should be able to just run a few commands to get set up:\n\n```\ngit clone https://github.com/kentcdodds/concurrent-react.git\ncd concurrent-react\nnpm run setup --silent\n```\n\nThis may take a few minutes. **It will ask you for your email.** This is\noptional and just automatically adds your email to the links in the project to\nmake filling out some forms easier If you get any errors, please read through\nthem and see if you can find out what the problem is. You may also want to look\nat [Troubleshooting](#troubleshooting). If you can't work it out on your own\nthen please [file an issue][issue] and provide _all_ the output from the\ncommands you ran (even if it's a lot).\n\n## Running the app\n\nTo get the app up and running (and really see if it worked), run:\n\n```shell\nnpm start\n```\n\nThis should start up your browser. If you're familiar, this is a standard\n[react-scripts](https://github.com/facebook/create-react-app) application.\n\nYou can also open\n[the deployment of the app on Netlify](https://concurrent-react.netlify.com/).\n\n## Running the tests\n\n```shell\nnpm test\n```\n\nThis will start [Jest](http://facebook.github.io/jest) in watch mode. Read the\noutput and play around with it.\n\n**Your goal will be to go into each test, swap the final version for the\nexercise version in the import, and make the tests pass**\n\n## Helpful Emoji 🐨 💰 💯 🦉 📜 💣 🚨\n\nEach exercise has comments in it to help you get through the exercise. These fun\nemoji characters are here to help you.\n\n- **Kody the Koala Bear** 🐨 will tell you when there's something specific you\n  should do\n- **Marty the Money Bag** 💰 will give you specific tips (and sometimes code)\n  along the way\n- **Hannah the Hundred** 💯 will give you extra challenges you can do if you\n  finish the exercises early.\n- **Olivia the Owl** 🦉 will give you useful tidbits/best practice notes and a\n  link for elaboration and feedback.\n- **Dominic the Document** 📜 will give you links to useful documentation\n- **Berry the Bomb** 💣 will be hanging around anywhere you need to blow stuff\n  up (delete code)\n- **Peter the Product Manager** 👨‍💼 helps us know what our users want\n- **Alfred the Alert** 🚨 will occasionally show up in the test failures with\n  potential explanations for why the tests are failing.\n\n## Troubleshooting\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\"npm run setup\" command not working\u003c/summary\u003e\n\nHere's what the setup script does. If it fails, try doing each of these things\nindividually yourself:\n\n```\n# verify your environment will work with the project\nnode ./scripts/verify\n\n# install dependencies\nnpm install\n\n# verify the project is ready to run\nnpm run build\nnpm run test:coverage\nnpm run lint\n\n# automatically fill in your email for the feedback links.\nnode ./scripts/autofill-feedback-email.js\n```\n\nIf any of those scripts fail, please try to work out what went wrong by the\nerror message you get. If you still can't work it out, feel free to [open an\nissue][issue] with _all_ the output from that script. I will try to help if I\ncan.\n\n\u003c/details\u003e\n\n## Contributors\n\nThanks goes to these wonderful people\n([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://kentcdodds.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1500684?v=3\" width=\"100px;\" alt=\"Kent C. Dodds\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKent C. Dodds\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/concurrent-react/commits?author=kentcdodds\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/concurrent-react/commits?author=kentcdodds\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#infra-kentcdodds\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/concurrent-react/commits?author=kentcdodds\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the\n[all-contributors](https://github.com/kentcdodds/all-contributors)\nspecification. Contributions of any kind welcome!\n\n## License\n\nThis material is available for private, non-commercial use under the\n[GPL version 3](http://www.gnu.org/licenses/gpl-3.0-standalone.html). If you\nwould like to use this material to conduct your own workshop, please contact me\nat kent@doddsfamily.us\n\n[npm]: https://www.npmjs.com/\n[node]: https://nodejs.org\n[git]: https://git-scm.com/\n[yarn]: https://yarnpkg.com/\n[build-badge]:\n  https://img.shields.io/travis/com/kentcdodds/concurrent-react.svg?style=flat-square\u0026logo=travis\n[build]: https://travis-ci.com/kentcdodds/concurrent-react\n[license-badge]:\n  https://img.shields.io/badge/license-GPL%203.0%20License-blue.svg?style=flat-square\n[license]:\n  https://github.com/kentcdodds/concurrent-react/blob/master/README.md#license\n[prs-badge]:\n  https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[coc-badge]:\n  https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]:\n  https://github.com/kentcdodds/concurrent-react/blob/master/CODE_OF_CONDUCT.md\n[github-watch-badge]:\n  https://img.shields.io/github/watchers/kentcdodds/concurrent-react.svg?style=social\n[github-watch]: https://github.com/kentcdodds/concurrent-react/watchers\n[github-star-badge]:\n  https://img.shields.io/github/stars/kentcdodds/concurrent-react.svg?style=social\n[github-star]: https://github.com/kentcdodds/concurrent-react/stargazers\n[twitter]:\n  https://twitter.com/intent/tweet?text=Check%20out%20concurrent-react%20by%20@kentcdodds%20https://github.com/kentcdodds/concurrent-react%20%F0%9F%91%8D\n[twitter-badge]:\n  https://img.shields.io/twitter/url/https/github.com/kentcdodds/concurrent-react.svg?style=social\n[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key\n[all-contributors]: https://github.com/kentcdodds/all-contributors\n[win-path]:\n  https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/\n[mac-path]: http://stackoverflow.com/a/24322978/971592\n[issue]: https://github.com/kentcdodds/concurrent-react/issues/new\n[win-build-badge]:\n  https://img.shields.io/appveyor/ci/kentcdodds/concurrent-react.svg?style=flat-square\u0026logo=appveyor\n[win-build]: https://ci.appveyor.com/project/kentcdodds/concurrent-react\n[coverage-badge]:\n  https://img.shields.io/codecov/c/github/kentcdodds/concurrent-react.svg?style=flat-square\n[coverage]: https://codecov.io/github/kentcdodds/concurrent-react\n[watchman]: https://facebook.github.io/watchman/docs/install.html\n\n\u003c!-- build trigger: 1 --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fconcurrent-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fconcurrent-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fconcurrent-react/lists"}