---
title: "Comment by Daniyaal Beg on \"Optimization Techniques and Best Practices for React Application\" | Hashnode"
description: "Love the article! One small nitpick, in the second code example your onChangeHandler is executing the function on render: onChange={handleUserInput()}"
url: "https://hashnode.com/posts/optimization-techniques-and-best-practices-for-react-application/63654a3bf400387d00d6fc61/comment/637e358125a8f7d5f98225ba"
---

[Discussion](https://hashnode.com/posts/optimization-techniques-and-best-practices-for-react-application/63654a3bf400387d00d6fc61)

Comment [Optimization Techniques and Best Practices for React Application](https://hashnode.com/posts/optimization-techniques-and-best-practices-for-react-application/63654a3bf400387d00d6fc61)

[Daniyaal Beg](https://hashnode.com/@Dbeg)

[Nov 23, 2022](https://hashnode.com/posts/optimization-techniques-and-best-practices-for-react-application/63654a3bf400387d00d6fc61/comment/637e358125a8f7d5f98225ba)

Love the article!

One small nitpick, in the second code example your onChangeHandler is executing the function on render: onChange={handleUserInput()}

[Vinay D S](https://hashnode.com/@vinayDs)

[Dec 16, 2022](https://hashnode.com/posts/optimization-techniques-and-best-practices-for-react-application/63654a3bf400387d00d6fc61/comment/637e358125a8f7d5f98225ba#reply-639cc4c8052fc36d4a8f4858)

Yup, my bad. Thank you
