airbnb / airbnb/javascript

Explicitly clarify naming policy for React event handler methods

Open
#598 5 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
148k
Forks
26.6k
PR merge metrics
No merged PRs in 30d

Description

The [ordering section](https://github.com/airbnb/javascript/tree/master/react#ordering) implies that event handlers should be named `onFoo` rather than `handleFoo` per FB examples. Is this an explicit rule? If so, it would be nice to have it listed in either the "naming" or "methods" sections.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked React ordering section and compare its event-handler guidance with the naming and methods sections. Confirm with maintainers whether onFoo or handleFoo is the intended policy, then document the explicit rule in the agreed section and verify the style guide wording is consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.