---
title: "Discussion on \"Using React Fragments for Cleaner Code\" | Hashnode"
description: "Discussion on \"Using React Fragments for Cleaner Code\". In React, when we render multiple JSX elements in a component, we basically wrap them inside a parent element. However, this approach creates unnecessary DO"
url: "https://hashnode.com/posts/using-react-fragments-for-cleaner-code/643ee0ce7d54e0a3ce24c9b1"
---

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

Discussion

# [Using React Fragments for Cleaner Code](https://blog.yashodeep.dev/using-react-fragments-for-cleaner-code?utm_source=hashnode&utm_medium=feed)

In React, when we render multiple JSX elements in a component, we basically wrap them inside a parent element. However, this approach creates unnecessary DO

Apr 18, 2023 · 2 min read · blog.yashodeep.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reactcomponent](https://hashnode.com/tag/reactcomponent)
-   [#fragment](https://hashnode.com/tag/fragment)
-   [#clean-code](https://hashnode.com/tag/clean-code)

## Written by

[Yashodeep Nimbekar](https://hashnode.com/@yashodeep)

@yashodeep · Pune

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

Engineer. Building Stuff.

I want to describe myself as a digital craftsman. I make tools, write about them (or about any tech-related thing I find interesting), and chase that rare thrill when code feels like art.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
