---
title: "Comment by Shanu Singh on \"🎇🔈How To Add Login Authentication to React Applications Using React Hooks🎯\" | Hashnode"
description: "Nyc but try to use ternary operator at the place of if and else it&#39;s much easier and also anyone get that easily"
url: "https://hashnode.com/posts/how-to-add-login-authentication-to-react-applications-using-react-hooks/63ad4264ae28e9e3fcc3512d/comment/63ad690d7a63272e55917e3c"
---

[Discussion](https://hashnode.com/posts/how-to-add-login-authentication-to-react-applications-using-react-hooks/63ad4264ae28e9e3fcc3512d)

Comment [🎇🔈How To Add Login Authentication to React Applications Using React Hooks🎯](https://hashnode.com/posts/how-to-add-login-authentication-to-react-applications-using-react-hooks/63ad4264ae28e9e3fcc3512d)

[Shanu Singh](https://hashnode.com/@krk460)

[Dec 29, 2022](https://hashnode.com/posts/how-to-add-login-authentication-to-react-applications-using-react-hooks/63ad4264ae28e9e3fcc3512d/comment/63ad690d7a63272e55917e3c)

Nyc but try to use ternary operator at the place of if and else it's much easier and also anyone get that easily
