DEV Community

Cover image for handleChange VS changeHandler
Mohammed Nadeem Shareef
Mohammed Nadeem Shareef

Posted on

1

handleChange VS changeHandler

Hello Developers 🤩🤩🤩

We have a lot of ways to name a function.
But in react, I have seen two major ways of naming functions.
handleChange and changeHandler

I like to name my functions as changeHandler, because when I have many functions defined and I want to autocomplete as I type the function name, then handle will autocomplete to all the functions that start with handle but when I name them as changeHandler, loginHandler, updateHandler and so on then it is easy to autocomplete the function.

After all little time saving can add up to a big thing.

Curious to know your take on this.
Have you ever think like this or its just me.

Closing here 👋👋👋

This is Shareef.
My recent project yourounotes
My Portfolio
Twitter ShareefBhai99
Linkedin
My other Blogs

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay