---
title: "Discussion on \"Conditional Rendering and Rendering List in React\" | Hashnode"
description: "Discussion on \"Conditional Rendering and Rendering List in React\". In this blog, We will be discussing Conditional Rendering, Logical And Operator, Ternary Operator, Rendering Lists and a lot more."
url: "https://hashnode.com/posts/conditional-rendering-and-rendering-list-in-react/645471be4ccaa07fc976e5a3"
---

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

Discussion

# [Conditional Rendering and Rendering List in React](https://debajit13.hashnode.dev/conditional-rendering-and-rendering-list-in-react?utm_source=hashnode&utm_medium=feed)

In this blog, We will be discussing Conditional Rendering, Logical And Operator, Ternary Operator, Rendering Lists and a lot more.

May 5, 2023 · 3 min read · debajit13.hashnode.dev  
Updated Sep 29, 2024  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Debajit Mallick](https://hashnode.com/@debajit13)

@debajit13 · Jalpaiguri, West Bengal, India

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

Software Engineer @P360

I am a Software Engineer with 3+ years of experience, currently at P360. I have a passion for creating intuitive web interfaces and actively contribute to tech communities as the Organizer of GDG Siliguri, ex-Microsoft Learn Student Ambassador, and former Hack Club Lead. As a tech speaker, I’ve presented at events like FrontendDays Siliguri, GDG Bhopal, and Azure DevDay. I’m also passionate about hackathons and open-source: Smart India Hackathon 2020 winner, HacktoberFest contributor, and mentor to the winning team of SIH 2022.

## Responses 1

Markdown supported · ⌘↵ to post

[Gemma Black](https://hashnode.com/@GemmaBlack)

[May 5, 2023](https://hashnode.com/posts/conditional-rendering-and-rendering-list-in-react/645471be4ccaa07fc976e5a3/comment/645472b5f475a1092cbd7e3b)

Good to know:

> In React, we use the index of an element as a key attribute. But this is an anti-pattern. We shouldn’t do this

[Debajit Mallick](https://hashnode.com/@debajit13)

[May 5, 2023](https://hashnode.com/posts/conditional-rendering-and-rendering-list-in-react/645471be4ccaa07fc976e5a3/comment/645472b5f475a1092cbd7e3b#reply-64548d53f475a1092cbd8166)

Thanks [Gemma Black](https://hashnode.com/@GemmaBlack), Yes, this does a lot of unnecessary re-renders.
