---
title: "Comment by Andrii Shupta on \"Improving performance of React component | using less state variables\" | Hashnode"
description: "Hello 👋 Thanks for the article, but IMHO this shouldn&#39;t be used as an approach to what React could &quot;control&quot; - Controlled vs. Uncontrolled compon"
url: "https://hashnode.com/posts/improving-performance-of-react-component-or-using-less-state-variables/6215c0342c936b90065dc689/comment/6216200d2c936b90065dd304"
---

[Discussion](https://hashnode.com/posts/improving-performance-of-react-component-or-using-less-state-variables/6215c0342c936b90065dc689)

Comment [Improving performance of React component | using less state variables](https://hashnode.com/posts/improving-performance-of-react-component-or-using-less-state-variables/6215c0342c936b90065dc689)

[Andrii Shupta](https://hashnode.com/@andriishupta)

[Feb 23, 2022](https://hashnode.com/posts/improving-performance-of-react-component-or-using-less-state-variables/6215c0342c936b90065dc689/comment/6216200d2c936b90065dd304)

Hello 👋

Thanks for the article, but IMHO this shouldn't be used as an approach to what React could "control" - Controlled vs. [Uncontrolled components](https://reactjs.org/docs/uncontrolled-components.html).

We are losing other possibilities like instant validation, conditional work with input(show/hide/disable something), formatting(like a phone), several values for different inputs, etc. You would still need to handle additional events and via `value` + `onChange` is better than direct DOM manipulation.

UPDATE for the last paragraph: These re-render are expected, such you have changed input 7 times - this is how [reconciliation](https://reactjs.org/docs/reconciliation.html) works.

PREVIOUS general knowledge: Also, re-renders could happen from something above in most cases: providers, settings, stores, etc. - you could avoid this by doing [memorizing](https://reactjs.org/docs/react-api.html#reactmemo) for components with unchanged props if you need (but in general, these updates don't have such impacts on performance and we let React do its work).

[Akash Bhandwalkar](https://hashnode.com/@akash19)

[Feb 23, 2022](https://hashnode.com/posts/improving-performance-of-react-component-or-using-less-state-variables/6215c0342c936b90065dc689/comment/6216200d2c936b90065dd304#reply-62162ed52c936b90065dd4ff)

I agree with you Andrii. If we move away from react's way to handle forms, we loose a lot of power.

The use case of ref would be very limited.
