From cc37a988ef2d9b07bf63107f66f303e31553e9e6 Mon Sep 17 00:00:00 2001 From: Vikrant Bhat <50735025+bhatvikrant@users.noreply.github.com> Date: Sat, 11 Jul 2020 05:01:04 +0530 Subject: [PATCH] Improved word (tense) usage for correct understanding --- content/docs/reference-react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-react.md b/content/docs/reference-react.md index e8b3a4fa7a7..792e338e1d6 100644 --- a/content/docs/reference-react.md +++ b/content/docs/reference-react.md @@ -128,7 +128,7 @@ const MyComponent = React.memo(function MyComponent(props) { If your function component renders the same result given the same props, you can wrap it in a call to `React.memo` for a performance boost in some cases by memoizing the result. This means that React will skip rendering the component, and reuse the last rendered result. -`React.memo` only checks for prop changes. If your function component wrapped in `React.memo` has a [`useState`](/docs/hooks-state.html) or [`useContext`](/docs/hooks-reference.html#usecontext) Hook in its implementation, it will still rerender when state or context change. +`React.memo` only checks for prop changes. If your functional component wrapped in `React.memo` has a [`useState`](/docs/hooks-state.html) or [`useContext`](/docs/hooks-reference.html#usecontext) Hook in its implementation, it will still rerender when state or context changes. By default it will only shallowly compare complex objects in the props object. If you want control over the comparison, you can also provide a custom comparison function as the second argument.