---
title: "Discussion on \"What's the deal with fragments in React?\" | Hashnode"
description: "Discussion on \"What's the deal with fragments in React?\". Why sibling elements require a wrapper\nIn React, a component must return a single element. If you try to return multiple sibling elements without wrapping them, you'll encounter an error.\nLet's dive into why this happens and how to fix it using React..."
url: "https://hashnode.com/posts/whats-the-deal-with-fragments-in-react/661eba4fd9e076e81afb7aa5"
---

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

Discussion

# [What's the deal with fragments in React?](https://tigerabrodi.blog/whats-the-deal-with-fragments-in-react?utm_source=hashnode&utm_medium=feed)

Why sibling elements require a wrapper In React, a component must return a single element. If you try to return multiple sibling elements without wrapping them, you'll encounter an error. Let's dive into why this happens and how to fix it using React...

Apr 16, 2024 · 1 min read · tigerabrodi.blog  
Read the article

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

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

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

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses 1

Markdown supported · ⌘↵ to post

[Abdulhamid Sonaike](https://hashnode.com/@abdulk)

[Apr 19, 2024](https://hashnode.com/posts/whats-the-deal-with-fragments-in-react/661eba4fd9e076e81afb7aa5/comment/662230149deb5f561bfa9b0b)

amazing read, always delivering quality articles
