---
title: "Discussion on \"Using <Fragment> to wrap react component return values\" | Hashnode"
description: "Discussion on \"Using <Fragment> to wrap react component return values\". I started writing react.js code last March and the journey has been fun so far. But I couldn't help but notice that wrapping return values in my code with a \"div tag\" felt weird. So here's what I found:\n\nReact return values can only take a single val..."
url: "https://hashnode.com/posts/using-lessfragmentgreater-to-wrap-react-component-return-values/6105c62533a2a43971a2d9f9"
---

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

Discussion

# [Using <Fragment> to wrap react component return values](https://tasleemofx.hashnode.dev/using-lessfragmentgreater-to-wrap-react-component-return-values?utm_source=hashnode&utm_medium=feed)

I started writing react.js code last March and the journey has been fun so far. But I couldn't help but notice that wrapping return values in my code with a "div tag" felt weird. So here's what I found: React return values can only take a single val...

Jul 31, 2021 · 1 min read · tasleemofx.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#html5](https://hashnode.com/tag/html5)
-   [#jsx](https://hashnode.com/tag/jsx)

## Written by

[Tesleem Oladepo](https://hashnode.com/@Tasleemofx)

@Tasleemofx

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

Frontend development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
