{"id":13493707,"url":"https://github.com/kentcdodds/advanced-react-patterns-v2","last_synced_at":"2025-09-27T07:31:52.417Z","repository":{"id":58985249,"uuid":"127754768","full_name":"kentcdodds/advanced-react-patterns-v2","owner":"kentcdodds","description":"Created with CodeSandbox","archived":true,"fork":false,"pushed_at":"2021-01-25T23:01:58.000Z","size":297,"stargazers_count":1509,"open_issues_count":4,"forks_count":567,"subscribers_count":45,"default_branch":"main","last_synced_at":"2024-09-26T22:04:55.631Z","etag":null,"topics":["javascript","kcd-edu","react"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/github/kentcdodds/advanced-react-patterns-v2","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}},"created_at":"2018-04-02T12:43:28.000Z","updated_at":"2024-09-16T17:43:35.000Z","dependencies_parsed_at":"2022-09-23T17:41:33.199Z","dependency_job_id":null,"html_url":"https://github.com/kentcdodds/advanced-react-patterns-v2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fadvanced-react-patterns-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fadvanced-react-patterns-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fadvanced-react-patterns-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fadvanced-react-patterns-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/advanced-react-patterns-v2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234410289,"owners_count":18828169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["javascript","kcd-edu","react"],"created_at":"2024-07-31T19:01:17.969Z","updated_at":"2025-09-27T07:31:51.149Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","readme":"# Advanced React Patterns v2\n\n👋 hi there! My name is [Kent C. Dodds](https://kentcdodds.com)! This is a\nworkshop repo to teach you about using React Component Patterns to make your\nreact components more useful and reusable without sacrificing simplicity.\n\n## Following along with Frontend Masters?\n\nHead to\n[the `frontend-masters` branch](https://github.com/kentcdodds/advanced-react-patterns-v2/tree/frontend-masters)\nto get started!\n\n[![chat-badge][chat-badge]][chat]\n[![Build Status][build-badge]][build]\n[![AppVeyor Build Status][win-build-badge]][win-build]\n[![Code Coverage][coverage-badge]][coverage]\n[![MIT License][license-badge]][license]\n[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors)\n\n[![PRs Welcome][prs-badge]][prs]\n[![Code of Conduct][coc-badge]][coc]\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n[![Tweet][twitter-badge]][twitter]\n\n## System Requirements\n\n* [git][git] v2.14.1 or greater\n* [NodeJS][node] v8.9.4 or greater\n* [npm][npm] v5.6.0 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```\ngit --version\nnode --version\nnpm --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\nYou may be able to work through the entire workshop in the browser. Go to\n[this codesandbox](https://codesandbox.io/s/github/kentcdodds/advanced-react-patterns-v2)\nand you should be good to go.\n\nIf you'd rather be able to work through the workshop on your own computer, then\nfollow the following instructions.\n\nAfter you've made sure to have the correct things (and versions) installed, you\nshould be able to just run a few commands to get set up:\n\n```\ngit clone https://github.com/kentcdodds/advanced-react-patterns-v2.git\ncd advanced-react-patterns-v2\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://advanced-react-patterns.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.\n**Kody the Koala Bear** and **Marty the Money Bag** are here to help you.\n**Kody** 🐨 will tell you when there's something specific you should do, and\n**Marty** 💰 will give you specific tips along the way. Should you finish\nearly, **Hannah the Hundred Points Symbol** 💯 will give you some additional\nchallenges that you can try!\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\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\n[open an issue][issue] with _all_ the output from that script. I will try to\nhelp if I can.\n\n\u003c/details\u003e\n\n## Contributors\n\nThanks goes to these wonderful people ([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 --\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/advanced-react-patterns-v2/commits?author=kentcdodds\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/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/advanced-react-patterns-v2/commits?author=kentcdodds\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/FWeinb\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/1250430?v=4\" width=\"100px;\" alt=\"FWeinb\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFWeinb\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/issues?q=author%3AFWeinb\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"#ideas-FWeinb\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/dlannoye\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/1383720?v=4\" width=\"100px;\" alt=\"David Lannoye\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDavid Lannoye\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/issues?q=author%3Adlannoye\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=dlannoye\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/colinrcummings\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/9815009?s=460\u0026v=4\" width=\"100px;\" alt=\"Colin Cummings\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eColin Cummings\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=colinrcummings\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=colinrcummings\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/bkoltai\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/464764?v=4\" width=\"100px;\" alt=\"Benji Koltai\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBenji Koltai\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=bkoltai\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://baggasumit.github.io\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/1779959?v=4\" width=\"100px;\" alt=\"Sumit Bagga\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSumit Bagga\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=baggasumit\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Tarabyte\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/2027010?v=4\" width=\"100px;\" alt=\"Yury Tarabanko\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYury Tarabanko\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=Tarabyte\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.wendtedesigns.com/\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/5779538?v=4\" width=\"100px;\" alt=\"Alex Wendte\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAlex Wendte\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=themostcolm\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/rahildar\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/16776182?v=4\" width=\"100px;\" alt=\"rahildar\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003erahildar\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=rahildar\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://konekoya.github.io/\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/12165714?v=4\" width=\"100px;\" alt=\"Joshua\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJoshua\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=konekoya\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.linkedin.com/in/nicolas-orchow/\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/7334576?v=4\" width=\"100px;\" alt=\"Nicolas Orchow\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNicolas Orchow\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/advanced-react-patterns-v2/commits?author=norchow\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://codefund.io\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/12481?v=4\" width=\"100px;\" alt=\"Eric Berry\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eEric Berry\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#fundingFinding-coderberry\" title=\"Funding Finding\"\u003e🔍\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. 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[chat]: https://gitter.im/kentcdodds/advanced-react-patterns-v2\n[chat-badge]: https://img.shields.io/gitter/room/kentcdodds/advanced-react-patterns-v2.js.svg?style=flat-square\u0026logo=gitter-white\n[build-badge]: https://img.shields.io/travis/kentcdodds/advanced-react-patterns-v2.svg?style=flat-square\u0026logo=travis\n[build]: https://travis-ci.org/kentcdodds/advanced-react-patterns-v2\n[license-badge]: https://img.shields.io/badge/license-GPL%203.0%20License-blue.svg?style=flat-square\n[license]: https://github.com/kentcdodds/advanced-react-patterns-v2/blob/master/README.md#license\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square\n[donate]: http://kcd.im/donate\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/kentcdodds/advanced-react-patterns-v2/blob/master/CODE_OF_CONDUCT.md\n[github-watch-badge]: https://img.shields.io/github/watchers/kentcdodds/advanced-react-patterns-v2.svg?style=social\n[github-watch]: https://github.com/kentcdodds/advanced-react-patterns-v2/watchers\n[github-star-badge]: https://img.shields.io/github/stars/kentcdodds/advanced-react-patterns-v2.svg?style=social\n[github-star]: https://github.com/kentcdodds/advanced-react-patterns-v2/stargazers\n[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20advanced-react-patterns-v2%20by%20@kentcdodds%20https://github.com/kentcdodds/advanced-react-patterns-v2%20%F0%9F%91%8D\n[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/kentcdodds/advanced-react-patterns-v2.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]: 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/advanced-react-patterns-v2/issues/new\n[win-build-badge]: https://img.shields.io/appveyor/ci/kentcdodds/advanced-react-patterns-v2.svg?style=flat-square\u0026logo=appveyor\n[win-build]: https://ci.appveyor.com/project/kentcdodds/advanced-react-patterns-v2\n[coverage-badge]: https://img.shields.io/codecov/c/github/kentcdodds/advanced-react-patterns-v2.svg?style=flat-square\n[coverage]: https://codecov.io/github/kentcdodds/advanced-react-patterns-v2\n[watchman]: https://facebook.github.io/watchman/docs/install.html\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fadvanced-react-patterns-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fadvanced-react-patterns-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fadvanced-react-patterns-v2/lists"}