The increaseSecondState function is re-rendering the child component even when i didn't pass it as a prop to the child component
I didnt expect the child component to re-render because i didnt pass the increaseSecondState function as a prop to the child component. Because we all know after using React.memo on the child component, the only way it can re-render is if only its prop changes. import React, { useState, useCallback } from ‘react’ import Child… Read More The increaseSecondState function is re-rendering the child component even when i didn't pass it as a prop to the child component