| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:52ebcfd2-e864-942b-7b6e-31dc79f03755 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | DB38:1BB96C:1A9F6E9:2429E37:6AFB8C89 |
| html-safe-nonce | 036896b30903cfdb58c8bd6327059c8a250aeb895afd1946deb84f89e49b13dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjM4OjFCQjk2QzoxQTlGNkU5OjI0MjlFMzc6NkFGQjhDODkiLCJ2aXNpdG9yX2lkIjoiMTY2NjAzNzUwODMzODMyMjU2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 01a91223e366c71866a257dc27cf7879e952e319a6562e2bc0a0316ebb15ca4e |
| hovercard-subject-tag | repository:254931280 |
| 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/sailoften/javascript/tree/master/react |
| twitter:image | https://opengraph.githubassets.com/a108f1c4007e0f3a2fa7cc13506b3b6fca98b6b7685b5e9a24eb56041042efc9/sailoften/javascript |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a108f1c4007e0f3a2fa7cc13506b3b6fca98b6b7685b5e9a24eb56041042efc9/sailoften/javascript |
| og:image:alt | JavaScript Style Guide. Contribute to sailoften/javascript development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9694464143465782ecae2a97650b2a2b0708d5c31c74f41ee86da57e315e2735 |
| turbo-cache-control | no-cache |
| go-import | github.com/sailoften/javascript git https://github.com/sailoften/javascript.git |
| octolytics-dimension-user_id | 36750532 |
| octolytics-dimension-user_login | sailoften |
| octolytics-dimension-repository_id | 254931280 |
| octolytics-dimension-repository_nwo | sailoften/javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 6498492 |
| octolytics-dimension-repository_parent_nwo | airbnb/javascript |
| octolytics-dimension-repository_network_root_id | 6498492 |
| octolytics-dimension-repository_network_root_nwo | airbnb/javascript |
| 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 | 05d967182208691fc7f2e6af52e82fa7fabf6bd5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/sailoften/javascript/tree/master/react#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsailoften%2Fjavascript%2Ftree%2Fmaster%2Freact |
| 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%2Fsailoften%2Fjavascript%2Ftree%2Fmaster%2Freact |
| 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=sailoften%2Fjavascript |
| Reload | https://github.com/sailoften/javascript/tree/master/react |
| Reload | https://github.com/sailoften/javascript/tree/master/react |
| Reload | https://github.com/sailoften/javascript/tree/master/react |
| sailoften | https://github.com/sailoften |
| javascript | https://github.com/sailoften/javascript |
| Code | https://github.com/sailoften/javascript |
| Pull requests | https://github.com/sailoften/javascript/pulls |
| Actions | https://github.com/sailoften/javascript/actions |
| Projects | https://github.com/sailoften/javascript/projects |
| Security and quality | https://github.com/sailoften/javascript/security |
| Insights | https://github.com/sailoften/javascript/pulse |
| https://github.com/sailoften/javascript |
| javascript | https://github.com/sailoften/javascript/tree/master |
| History | https://github.com/sailoften/javascript/commits/master/react |
| https://github.com/sailoften/javascript/commits/master/react |
| javascript | https://github.com/sailoften/javascript/tree/master |
| .. | https://github.com/sailoften/javascript/tree/master |
| README.md | https://github.com/sailoften/javascript/blob/master/react/README.md |
| README.md | https://github.com/sailoften/javascript/blob/master/react/README.md |
| README.md | https://github.com/sailoften/javascript/tree/master/react#readme |
| https://github.com/sailoften/javascript/tree/master/react#airbnb-reactjsx-style-guide |
| https://github.com/sailoften/javascript/tree/master/react#table-of-contents |
| Basic Rules | https://github.com/sailoften/javascript/tree/master/react#basic-rules |
| Class vs React.createClass vs stateless | https://github.com/sailoften/javascript/tree/master/react#class-vs-reactcreateclass-vs-stateless |
| Mixins | https://github.com/sailoften/javascript/tree/master/react#mixins |
| Naming | https://github.com/sailoften/javascript/tree/master/react#naming |
| Declaration | https://github.com/sailoften/javascript/tree/master/react#declaration |
| Alignment | https://github.com/sailoften/javascript/tree/master/react#alignment |
| Quotes | https://github.com/sailoften/javascript/tree/master/react#quotes |
| Spacing | https://github.com/sailoften/javascript/tree/master/react#spacing |
| Props | https://github.com/sailoften/javascript/tree/master/react#props |
| Refs | https://github.com/sailoften/javascript/tree/master/react#refs |
| Parentheses | https://github.com/sailoften/javascript/tree/master/react#parentheses |
| Tags | https://github.com/sailoften/javascript/tree/master/react#tags |
| Methods | https://github.com/sailoften/javascript/tree/master/react#methods |
| Ordering | https://github.com/sailoften/javascript/tree/master/react#ordering |
| isMounted | https://github.com/sailoften/javascript/tree/master/react#ismounted |
| https://github.com/sailoften/javascript/tree/master/react#basic-rules |
| Stateless, or Pure, Components | https://facebook.github.io/react/docs/reusable-components.html#stateless-functions |
| react/no-multi-comp | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md#ignorestateless |
| react/forbid-prop-types | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-prop-types.md |
| https://github.com/sailoften/javascript/tree/master/react#class-vs-reactcreateclass-vs-stateless |
| react/prefer-es6-class | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md |
| react/prefer-stateless-function | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md |
| https://github.com/sailoften/javascript/tree/master/react#mixins |
| Do not use mixins | https://facebook.github.io/react/blog/2016/07/13/mixins-considered-harmful.html |
| https://github.com/sailoften/javascript/tree/master/react#naming |
| react/jsx-filename-extension | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md |
| react/jsx-pascal-case | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md |
| https://github.com/sailoften/javascript/tree/master/react#declaration |
| https://github.com/sailoften/javascript/tree/master/react#alignment |
| react/jsx-closing-bracket-location | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md |
| react/jsx-closing-tag-location | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md |
| https://github.com/sailoften/javascript/tree/master/react#quotes |
| jsx-quotes | https://eslint.org/docs/rules/jsx-quotes |
| https://github.com/sailoften/javascript/tree/master/react#spacing |
| no-multi-spaces | https://eslint.org/docs/rules/no-multi-spaces |
| react/jsx-tag-spacing | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md |
| react/jsx-curly-spacing | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md |
| https://github.com/sailoften/javascript/tree/master/react#props |
| react/jsx-boolean-value | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md |
| jsx-a11y/alt-text | https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md |
| jsx-a11y/img-redundant-alt | https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md |
| ARIA roles | https://www.w3.org/TR/wai-aria/#usage_intro |
| jsx-a11y/aria-role | https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md |
| jsx-a11y/no-access-key | https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md |
| react/no-array-index-key | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md |
| is an anti-pattern | https://medium.com/@robinpokorny/index-as-a-key-is-an-anti-pattern-e0349aece318 |
| pass invalid HTML attributes to the DOM | https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html |
| prop-types-exact | https://www.npmjs.com/package/prop-types-exact |
| https://github.com/sailoften/javascript/tree/master/react#refs |
| react/no-string-refs | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-string-refs.md |
| https://github.com/sailoften/javascript/tree/master/react#parentheses |
| react/jsx-wrap-multilines | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-wrap-multilines.md |
| https://github.com/sailoften/javascript/tree/master/react#tags |
| react/self-closing-comp | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md |
| react/jsx-closing-bracket-location | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md |
| https://github.com/sailoften/javascript/tree/master/react#methods |
| do not massively hurt performance | https://www.bignerdranch.com/blog/choosing-the-best-approach-for-react-event-handlers/ |
| react/jsx-no-bind | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md |
| challenging to test and debug, and can negatively impact performance | https://medium.com/@charpeni/arrow-functions-in-class-properties-might-not-be-as-great-as-we-think-3b3551c440b1 |
| #1024 | https://github.com/airbnb/javascript/issues/1024 |
| #490 | https://github.com/airbnb/javascript/issues/490 |
| react/require-render-return | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-render-return.md |
| https://github.com/sailoften/javascript/tree/master/react#ordering |
| react/sort-comp | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md |
| https://github.com/sailoften/javascript/tree/master/react#ismounted |
| react/no-is-mounted | https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-is-mounted.md |
| isMounted is an anti-pattern | https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html |
| https://github.com/sailoften/javascript/tree/master/react#translation |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/China.png |
| jhcccc/javascript | https://github.com/jhcccc/javascript/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Taiwan.png |
| jigsawye/javascript | https://github.com/jigsawye/javascript/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Spain.png |
| agrcrobles/javascript | https://github.com/agrcrobles/javascript/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Japan.png |
| mitsuruog/javascript-style-guide | https://github.com/mitsuruog/javascript-style-guide/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/South-Korea.png |
| apple77y/javascript | https://github.com/apple77y/javascript/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Poland.png |
| pietraszekl/javascript | https://github.com/pietraszekl/javascript/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Brazil.png |
| ronal2do/javascript | https://github.com/ronal2do/airbnb-react-styleguide |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Russia.png |
| leonidlebedev/javascript-airbnb | https://github.com/leonidlebedev/javascript-airbnb/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Thailand.png |
| lvarayut/javascript-style-guide | https://github.com/lvarayut/javascript-style-guide/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Turkey.png |
| alioguzhan/react-style-guide | https://github.com/alioguzhan/react-style-guide |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Ukraine.png |
| ivanzusko/javascript | https://github.com/ivanzusko/javascript/tree/master/react |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Vietnam.png |
| uetcodecamp/jsx-style-guide | https://github.com/UETCodeCamp/jsx-style-guide |
| ⬆ back to top | https://github.com/sailoften/javascript/tree/master/react#table-of-contents |
|
| 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 |