Если реакт наконец-то на себя берёт чуть больше обязанностей, которые он, как view, давно должен был уже заимплементить, то это замечательно, можно будет начать думать об идеях более высокого уровня
Event handlers need to be recreated on each render in order to reference the latest copy of props and state, which reduces the effectiveness of PureComponent and React.pure.
Event handlers need to be recreated on each render in order to reference the latest copy of props and state, which reduces the effectiveness of PureComponent and React.pure.
It's possible for closures (like the ones passed to useEffect and useCallback) to capture old versions of props and state values. In particular, this happens if the “inputs” array is inadvertently missing one of captured variables. This can be confusing.