From 21fe4c829b1c8da566b0c51c0cac08fb468068dd Mon Sep 17 00:00:00 2001 From: Sam Bigelow Date: Mon, 26 Oct 2020 11:40:37 -0400 Subject: [PATCH] Fix a grammatical error in Context.md (#3352) --- content/docs/context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/context.md b/content/docs/context.md index c6882fe0..339380a5 100644 --- a/content/docs/context.md +++ b/content/docs/context.md @@ -128,7 +128,7 @@ The `defaultValue` argument is **only** used when a component does not have a ma Every Context object comes with a Provider React component that allows consuming components to subscribe to context changes. -Accepts a `value` prop to be passed to consuming components that are descendants of this Provider. One Provider can be connected to many consumers. Providers can be nested to override values deeper within the tree. +The Provider component accepts a `value` prop to be passed to consuming components that are descendants of this Provider. One Provider can be connected to many consumers. Providers can be nested to override values deeper within the tree. All consumers that are descendants of a Provider will re-render whenever the Provider's `value` prop changes. The propagation from Provider to its descendant consumers (including [`.contextType`](#classcontexttype) and [`useContext`](/docs/hooks-reference.html#usecontext)) is not subject to the `shouldComponentUpdate` method, so the consumer is updated even when an ancestor component skips an update.