This content originally appeared on DEV Community and was authored by John
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
This content originally appeared on DEV Community and was authored by John
John | Sciencx (2022-01-15T17:18:05+00:00) What is the use of UseMemo. Retrieved from https://www.scien.cx/2022/01/15/what-is-the-use-of-usememo/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.