Use React event naming conventions
See original GitHub issueIn React, events are typically called onChange
and onClick
rather than onChanged
and onClicked
. How do you feel about changing this? Great project btw!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:23
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Handy Naming Conventions for Event Handler Functions ...
Naming your handler functions follows a similar naming convention to the one for event handler attributes. Simply remember that there is a flow...
Read more >Event Handler Naming in React - Jake Trent
Naming's a hard problem, right? Here are a few of my naming conventions for React or event handling in general.
Read more >What is the right name of event handler? onClick or ...
There is no "right name" for an event handler, it depends on which convention you decide to follow. I like to think of...
Read more >Simple Naming Tips for Event Handlers | by Vlad Sabev
We followed these simple naming tips: 1. Event names should answer the question when, because they're on the left side and describe the...
Read more >Five best practices for React developers - Educative.io
5. Naming Convention ... There are three main naming conventions in React that should be considered best practice. ... Elements that need keys ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think you should keep it closer to libui-node since you’re implementing React and you know, there are a lot of conventions… Doesn’t make sense to me. In the whole React world (DOM, Native, etcetera), we are used to things like
onClick
,onPress
and so forth.Yeah I’ve decided that I’ll do it when I get a chance.