Regarding using arrow functions vs class methods bound to this for event handlers, the official documents of React reads:
The problem with this syntax (arrow function) is that a different callback is created each time the
LoggingButton(an example component) renders. In most cases, this is fine. However, if this callback is passed as a prop to lower components, those components might do an extra re-rendering. We generally recommend binding in the constructor or using the class fields syntax, to avoid this sort of performance problem.
Since the new approach recommends using function components instead of classes, how do we resolve the above performance issue?