SRGreat article. What I usually do is double negate the conditions when working with falsy values, like: {!!user && < UserProfile user = {user} /> }Comment·Article·May 15, 2024·Mastering Falsy Values in React: Avoiding Traps and Pitfalls