You pass a memoized function to a child component wrapped in memo() to prevent it from re-rendering because it would be receiving a function that gets re-created otherwise. We update the App's state without triggering re-render on its child, ButtonComponent.
2/8/2026, 10:02:31 PM

  • Button re-render