Если функция передается дальше по дереву в props - то на каждый рендер будет новая функция, что будет тригерить ререндер у children (в которые передается функция)
The problem with this syntax is that a different callback is created each time the 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