---
title: "Discussion on \"Cleaner way to write conditionals in JSX\" | Hashnode"
description: "Discussion on \"Cleaner way to write conditionals in JSX\". Code Clean in React"
url: "https://hashnode.com/posts/cleaner-way-to-write-conditionals-in-jsx/616972d453401f641ba181a2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cleaner way to write conditionals in JSX](https://hardikhere.hashnode.dev/cleaner-way-to-write-conditionals-in-jsx?utm_source=hashnode&utm_medium=feed)

Code Clean in React

Oct 15, 2021 · 3 min read · hardikhere.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react-native](https://hashnode.com/tag/react-native)
-   [#jsx](https://hashnode.com/tag/jsx)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#clean-code](https://hashnode.com/tag/clean-code)

## Written by

[hardik Khachandani](https://hashnode.com/@hardikhere)

@hardikhere

  
[View profile](https://hashnode.com/@hardikhere)

I do code

## Responses 1

Markdown supported · ⌘↵ to post

[Lovish Tater](https://hashnode.com/@lovishtater)

[Oct 15, 2021](https://hashnode.com/posts/cleaner-way-to-write-conditionals-in-jsx/616972d453401f641ba181a2/comment/6169c1c953401f641ba18963)

Thank you for always making us aware of such important things.

[hardik Khachandani](https://hashnode.com/@hardikhere)

[Oct 15, 2021](https://hashnode.com/posts/cleaner-way-to-write-conditionals-in-jsx/616972d453401f641ba181a2/comment/6169c1c953401f641ba18963#reply-6169d38053401f641ba18aa4)

Thanks bro 😄
