News

The key difference is that React simply returns the cached value of the function unless something has changed in the list of dependency variables, which in our example is the counter variable.