diff --git a/content/docs/components-and-props.md b/content/docs/components-and-props.md
index 92661b9dc18..1719fcb583a 100644
--- a/content/docs/components-and-props.md
+++ b/content/docs/components-and-props.md
@@ -154,11 +154,11 @@ This component can be tricky to change because of all the nesting, and it is als
First, we will extract `Avatar`:
```js{3-6}
-function Avatar(props) {
+function Avatar({user}) {
return (
);
}
@@ -194,12 +194,12 @@ function Comment(props) {
Next, we will extract a `UserInfo` component that renders an `Avatar` next to the user's name:
```js{3-8}
-function UserInfo(props) {
+function UserInfo({user}) {
return (