question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use React event naming conventions

See original GitHub issue

In 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:closed
  • Created 6 years ago
  • Reactions:23
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

19reactions
zaguiinicommented, Feb 18, 2018

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.

5reactions
kusti8commented, Feb 20, 2018

Yeah I’ve decided that I’ll do it when I get a chance.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found