Skip to content

Commit c519143

Browse files
committed
grammar
1 parent 22fa7ab commit c519143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components/provide-inject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Usually, when we need to pass data from the parent to child component, we use [p
1414

1515
<!-- https://www.figma.com/file/yNDTtReM2xVgjcGVRzChss/props-drilling -->
1616

17-
Notice although the `<Footer>` component may not care about these props at all - but it still needs to declare and pass them along just so `<DeepChild>` can access them. If there is a longer parent chain, more components would be affected along the way. This is called "props drilling" and definitely isn't fun to deal with.
17+
Notice although the `<Footer>` component may not care about these props at all, it still needs to declare and pass them along just so `<DeepChild>` can access them. If there is a longer parent chain, more components would be affected along the way. This is called "props drilling" and definitely isn't fun to deal with.
1818

1919
We can solve props drilling with `provide` and `inject`. A parent component can serve as a **dependency provider** for all its descendants. Any component in the descendant tree, regardless of how deep it is, can **inject** dependencies provided by components up in its parent chain.
2020

0 commit comments

Comments
 (0)