---
title: "Comment by Michele Masina on \"React Clean Code for Beginners\" | Hashnode"
description: "The part about destructuring props is not completely correct. The second example shows: const { name , age, phone } = props. user ; while the third example show"
url: "https://hashnode.com/posts/react-clean-code-for-beginners/604eaf5937d84907f1329731/comment/604f885e825b051f2b9dbd70"
---

[Discussion](https://hashnode.com/posts/react-clean-code-for-beginners/604eaf5937d84907f1329731)

Comment [React Clean Code for Beginners](https://hashnode.com/posts/react-clean-code-for-beginners/604eaf5937d84907f1329731)

[Michele Masina](https://hashnode.com/@masinamichele)

[Mar 15, 2021](https://hashnode.com/posts/react-clean-code-for-beginners/604eaf5937d84907f1329731/comment/604f885e825b051f2b9dbd70)

The part about destructuring props is not completely correct. The second example shows:

```
const { name, age, phone } = props.user;
```

while the third example shows:

```
const UserCard = ({ name, age, phone })=> {
```

It should read instead:

```
const UserCard = ({ user })=> {
```

and be used as `user.name` or `user.age`, or even better:

```
const UserCard = ({ user: { name, age, phone } })=> {
```

and be used simply with `name` or `age`.

Other than that, good article. Thanks! :)

[Luísa Ribeiro Bezerra](https://hashnode.com/@luisarbezerra)

[Mar 15, 2021](https://hashnode.com/posts/react-clean-code-for-beginners/604eaf5937d84907f1329731/comment/604f885e825b051f2b9dbd70#reply-604f89e6416f221f065b539d)

Thank you Michele! I have already edited it, thanks to Arthur (and you, ofc). I didn't notice it while I was writing this post! So thank you again :)
