React Hook, Hooks, React.
onClick={decrement}>-</button> <button onClick={incrementOtherCounter}>incrementOtherCounter</button> </> ) } Now if you try to click one of the counters, only the functions related to the state that changes are going to be re-rendered. useMemo():Memoization is basically an optimization technique