Complete Guide for React-Hooks: useCallback And useMemo

Complete Guide for React Hooks

React-Hooks

What is useCallback?

Purpose of useCallback

Syntax of useCallback:

What is useMemo?

Purpose of useMemo

Memoization

Syntax of useMemo:

Difference Between useMemo And useCallback?

In What Way Does The Dependency Array Work With These Hooks?

useEffect

Syntax of useEffect:

Now, let’s move on to how the dependency array works with these hooks

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store