Skip to content

Commit 21fe4c8

Browse files
authored
Fix a grammatical error in Context.md (#3352)
1 parent 6682068 commit 21fe4c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The `defaultValue` argument is **only** used when a component does not have a ma
128128

129129
Every Context object comes with a Provider React component that allows consuming components to subscribe to context changes.
130130

131-
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.
131+
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.
132132

133133
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.
134134

0 commit comments

Comments
 (0)