4 ms·
No, this implicit state is a very practical concern in React. For example see this highly upvoted SO post. Text fields lose focus on re-render; the solution is
by ridiculous_fish 4y ago
No, this implicit state is a very practical concern in React. For example see this highly upvoted SO post. Text fields lose focus on re-render; the solution is to use a unique key so that the view gets re-used and the implicit state is preserved.
https://stackoverflow.com/questions/22573494/react-js-input-losing-focus-when-rerendering https://stackoverflow.com/questions/22573494/react-js-input-...