---
title: "Comment by Sabbir Rahman on \"Mastering Falsy Values in React: Avoiding Traps and Pitfalls\" | Hashnode"
description: "Great article. What I usually do is double negate the conditions when working with falsy values, like: {!!user &amp;&amp; &lt; UserProfile user = {user} /&gt; }"
url: "https://hashnode.com/posts/mastering-falsy-values-in-react-avoiding-traps-and-pitfalls/66425e5ed617a8c623afe050/comment/6644daeb13e2a552d9ad3ab9"
---

[Discussion](https://hashnode.com/posts/mastering-falsy-values-in-react-avoiding-traps-and-pitfalls/66425e5ed617a8c623afe050)

Comment [Mastering Falsy Values in React: Avoiding Traps and Pitfalls](https://hashnode.com/posts/mastering-falsy-values-in-react-avoiding-traps-and-pitfalls/66425e5ed617a8c623afe050)

[Sabbir Rahman](https://hashnode.com/@sabbirrahman)

[May 15, 2024](https://hashnode.com/posts/mastering-falsy-values-in-react-avoiding-traps-and-pitfalls/66425e5ed617a8c623afe050/comment/6644daeb13e2a552d9ad3ab9)

Great article. What I usually do is double negate the conditions when working with falsy values, like:

```
{!!user && <UserProfile user={user} />}
```

[Alexandre Calaça](https://hashnode.com/@alexandrecalaca)

[May 16, 2024](https://hashnode.com/posts/mastering-falsy-values-in-react-avoiding-traps-and-pitfalls/66425e5ed617a8c623afe050/comment/6644daeb13e2a552d9ad3ab9#reply-6645f41bf45f44f860e5ef4d)

Thanks a lot for the comment, [Sabbir Rahman](https://hashnode.com/@sabbirrahman).

Excellent approach.
