| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:46e01eb6-1904-2213-6e57-90e0a44e4a2a |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | E0F6:223F7A:7A9A6:9F2C2:6B09270A |
| html-safe-nonce | 2395d19cd4d54fac1842d42592d1ab6ffe541dc853d06a92f00f18858b7f1219 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEY2OjIyM0Y3QTo3QTlBNjo5RjJDMjo2QjA5MjcwQSIsInZpc2l0b3JfaWQiOiI1NzcxMTE4ODExMjE0ODQ5ODAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 005483f0945d9e4cff430bd487f19d31c3aa6c7cff20083388b15c6f09f64e55 |
| hovercard-subject-tag | repository:374127858 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///files/disambiguate |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/linuxsch/learning-react/tree/master/chapter-06 |
| twitter:image | https://opengraph.githubassets.com/1d00bd6a47b7e8e9fd5fa93c462134405c4655cbae53414b7d63c2ba35b0a4c7/linuxsch/learning-react |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d00bd6a47b7e8e9fd5fa93c462134405c4655cbae53414b7d63c2ba35b0a4c7/linuxsch/learning-react |
| og:image:alt | The code samples for Learning React by Alex Banks and Eve Porcello, published by O'Reilly Media - linuxsch/learning-react |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | da7e7304a38b6bc6a1ec0a7970f219ae1c71491302599b3c42088762d8889d94 |
| turbo-cache-control | no-cache |
| go-import | github.com/linuxsch/learning-react git https://github.com/linuxsch/learning-react.git |
| octolytics-dimension-user_id | 38207672 |
| octolytics-dimension-user_login | linuxsch |
| octolytics-dimension-repository_id | 374127858 |
| octolytics-dimension-repository_nwo | linuxsch/learning-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 61668321 |
| octolytics-dimension-repository_parent_nwo | MoonHighway/learning-react |
| octolytics-dimension-repository_network_root_id | 61668321 |
| octolytics-dimension-repository_network_root_nwo | MoonHighway/learning-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3cb927d1757a02e619a0eb62b036233d6d9cdc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/linuxsch/learning-react/tree/master/chapter-06#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flinuxsch%2Flearning-react%2Ftree%2Fmaster%2Fchapter-06 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flinuxsch%2Flearning-react%2Ftree%2Fmaster%2Fchapter-06 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=linuxsch%2Flearning-react |
| Reload | https://github.com/linuxsch/learning-react/tree/master/chapter-06 |
| Reload | https://github.com/linuxsch/learning-react/tree/master/chapter-06 |
| Reload | https://github.com/linuxsch/learning-react/tree/master/chapter-06 |
| linuxsch | https://github.com/linuxsch |
| learning-react | https://github.com/linuxsch/learning-react |
| Code | https://github.com/linuxsch/learning-react |
| Pull requests | https://github.com/linuxsch/learning-react/pulls |
| Actions | https://github.com/linuxsch/learning-react/actions |
| Projects | https://github.com/linuxsch/learning-react/projects |
| Security and quality | https://github.com/linuxsch/learning-react/security |
| Insights | https://github.com/linuxsch/learning-react/pulse |
| https://github.com/linuxsch/learning-react |
| learning-react | https://github.com/linuxsch/learning-react/tree/master |
| History | https://github.com/linuxsch/learning-react/commits/master/chapter-06 |
| https://github.com/linuxsch/learning-react/commits/master/chapter-06 |
| learning-react | https://github.com/linuxsch/learning-react/tree/master |
| .. | https://github.com/linuxsch/learning-react/tree/master |
| 01-property-validation-and-default-props | https://github.com/linuxsch/learning-react/tree/master/chapter-06/01-property-validation-and-default-props |
| 01-property-validation-and-default-props | https://github.com/linuxsch/learning-react/tree/master/chapter-06/01-property-validation-and-default-props |
| 02-refs | https://github.com/linuxsch/learning-react/tree/master/chapter-06/02-refs |
| 02-refs | https://github.com/linuxsch/learning-react/tree/master/chapter-06/02-refs |
| 03-component-state | https://github.com/linuxsch/learning-react/tree/master/chapter-06/03-component-state |
| 03-component-state | https://github.com/linuxsch/learning-react/tree/master/chapter-06/03-component-state |
| color-organizer | https://github.com/linuxsch/learning-react/tree/master/chapter-06/color-organizer |
| color-organizer | https://github.com/linuxsch/learning-react/tree/master/chapter-06/color-organizer |
| readme.md | https://github.com/linuxsch/learning-react/blob/master/chapter-06/readme.md |
| readme.md | https://github.com/linuxsch/learning-react/blob/master/chapter-06/readme.md |
| readme.md | https://github.com/linuxsch/learning-react/tree/master/chapter-06#readme |
| https://github.com/linuxsch/learning-react/tree/master/chapter-06#chapter-6--props-state-and-the-component-tree |
| https://github.com/linuxsch/learning-react/tree/master/chapter-06#samples |
| https://github.com/linuxsch/learning-react/tree/master/chapter-06#property-validation-and-default-props |
| https://github.com/linuxsch/learning-react/tree/master/chapter-06#validation-with-prop-types |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/01-incorrect-props-no-error.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/01-incorrect-props-no-error.html |
| bin | http://jsbin.com/pozozi/1/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/02-introducing-prop-types-npm.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/02-introducing-prop-types-npm.html |
| bin | http://jsbin.com/pozozi/2/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/03-prop-types-success.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/03-prop-types-success.html |
| bin | http://jsbin.com/pozozi/3/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/04-cryptic-problems-when-prop-missing.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/04-cryptic-problems-when-prop-missing.html |
| bin | http://jsbin.com/pozozi/4/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/05-better-errors-with-is-required.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/05-better-errors-with-is-required.html |
| bin | http://jsbin.com/pozozi/5/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/06-successful-validation.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/06-successful-validation.html |
| bin | http://jsbin.com/pozozi/6/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/07-default-properties.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/07-default-properties.html |
| bin | http://jsbin.com/pozozi/7/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/08-custom-validation.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/08-custom-validation.html |
| bin | http://jsbin.com/pozozi/8/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/09-stateless-prop-validation.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/09-stateless-prop-validation.html |
| bin | http://jsbin.com/pozozi/9/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/01-property-validation-and-default-props/10-stateless-default-props.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/10-stateless-default-props.html |
| bin | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/01-property-validation-and-default-props/http://jsbin.com/pozozi/10/edit?js,output |
| https://github.com/linuxsch/learning-react/tree/master/chapter-06#refs |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/01-color-component-before-refs.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/01-color-component-before-refs.html |
| bin | http://jsbin.com/funeyol/1/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/02-color-component-with-refs.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/02-color-component-with-refs.html |
| bin | http://jsbin.com/funeyol/2/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/03-Color-Component-binding.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/03-Color-Component-binding.html |
| bin | http://jsbin.com/funeyol/3/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/04-two-way-data-todo.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/04-two-way-data-todo.html |
| bin | http://jsbin.com/funeyol/4/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/05-without-default-function.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/05-without-default-function.html |
| bin | http://jsbin.com/funeyol/5/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/06-check-for-property.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/06-check-for-property.html |
| bin | http://jsbin.com/funeyol/6/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/07-default-property.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/07-default-property.html |
| bin | http://jsbin.com/funeyol/7/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/08-stateless-default-prop.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/08-stateless-default-prop.html |
| bin | http://jsbin.com/funeyol/8/edit?js,console,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/02-refs/09-stateless-default-arg.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/02-refs/09-stateless-default-arg.html |
| bin | http://jsbin.com/funeyol/9/edit?js,console,output |
| https://github.com/linuxsch/learning-react/tree/master/chapter-06#component-state |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/03-component-state/01-the-star-component.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/03-component-state/01-the-star-component.html |
| bin | http://jsbin.com/budanem/1/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/03-component-state/02-the-star-rating-component.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/03-component-state/02-the-star-rating-component.html |
| bin | http://jsbin.com/budanem/2/edit?js,output |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/03-component-state/03-setting-state-from-props.html |
| code | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/03-component-state/03-setting-state-from-props.html |
| bin | http://jsbin.com/budanem/3/edit?js,output |
| https://github.com/linuxsch/learning-react/tree/master/chapter-06#state-within-the-component-tree |
| demo | https://rawgit.com/MoonHighway/learning-react/master/chapter-06/color-organizer/dist/index.html |
| source | https://github.com/MoonHighway/learning-react/blob/master/chapter-06/color-organizer |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |