React: useMemo, useCallback

The React useMemo Hook returns a memoized value. The useMemo Hook can be used to keep expensive, resource intensive functions from needlessly running. Think of memoization as caching a value so that it does not need to be recalculated. The useMemo Hook only runs when one of its dependencies update. This can improve performance. Example: import Read more

ES6 Promise

1. What is Promise Promise is a solution for asynchronous programming. It is actually a constructor with its own methods all, reject and resolve, and prototype methods such as then and catch. The Promise object has the following two features: The Promise object represents an asynchronous operation with three states: Read more