Let's take some trivial react component that have to render:
1) text field (managed one, connected to state)
2) list of tasks (map through array connected to state too)
3) button, that adds new item to array from text field, when clicked
https://stackblitz.com/edit/react-glpzqn?embed=1&file=index.js
when text field is updated(textChange event) => then state is updated => that force render(on each key press in text field).
it's unwanted render, I only want to render when button is clicked, item is added to array and finally new list is rendered on a screen.
so I want to force render only on item added to the list, and not when text is changed.
some solutions that I can reveal are:
1) take input to another component so text change will not affect list rendering.
2) change input field to unmanaged and retrieve text manually when button clicked.
I'm guessing if there is some more elegant solution without changing a component? may be by using some HOC or same?