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.
6/26/2025, 1:49:04 PM

  • Button re-render