From a718c9bdbafc96033eae2031e47cc79764c11785 Mon Sep 17 00:00:00 2001 From: Gasim Gasimzada Date: Sat, 23 Feb 2019 15:23:04 +0400 Subject: [PATCH] Add missing `avatarSize` in "Before you use context" to text and code --- content/docs/context.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/context.md b/content/docs/context.md index 8e41a465f9e..e7bb925c7a2 100644 --- a/content/docs/context.md +++ b/content/docs/context.md @@ -54,7 +54,7 @@ For example, consider a `Page` component that passes a `user` and `avatarSize` p It might feel redundant to pass down the `user` and `avatarSize` props through many levels if in the end only the `Avatar` component really needs it. It's also annoying that whenever the `Avatar` component needs more props from the top, you have to add them at all the intermediate levels too. -One way to solve this issue **without context** is to [pass down the `Avatar` component itself](/docs/composition-vs-inheritance.html#containment) so that the intermediate components don't need to know about the `user` prop: +One way to solve this issue **without context** is to [pass down the `Avatar` component itself](/docs/composition-vs-inheritance.html#containment) so that the intermediate components don't need to know about the `user` or `avatarSize` props: ```js function Page(props) { @@ -68,7 +68,7 @@ function Page(props) { } // Now, we have: - + // ... which renders ... // ... which renders ...