What is the use of UseMemo

johnbabu021

john

Posted on January 15, 2022

What is the use of UseMemo

useMemo is a memorise hook that avoid rendering a Component if there is no change in props
let's take an example when a parent child renders all of it's children component will render but we can avoid rendering of children if there is no change in the props by wrapping
it with a React.useMemo hook

💖 💪 🙅 🚩
johnbabu021
john

Posted on January 15, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related