Answer the question
In order to leave comments, you need to log in
If props is missing Should memo be used?
I have this component
import React, { Fragment, memo } from "react";
const Gurdingo = () => {
return <Fragment>100</Fragment>;
};
export default memo(Gurdingo);
Answer the question
In order to leave comments, you need to log in
In this case, instead of re-rendering, you will always get the memorized result of the first one. In some cases, this can improve performance.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question