---
title: "Discussion on \"The Root of the Matter: Why We Put React in a Div and Not body\" | Hashnode"
description: "Discussion on \"The Root of the Matter: Why We Put React in a Div and Not body\". Ever wondered why we define root in a div tag and not in body in React? 🤔"
url: "https://hashnode.com/posts/the-root-of-the-matter-why-we-put-react-in-a-div-and-not-body/65e63e3b72acd69e01f2cfe3"
---

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

Discussion

# [The Root of the Matter: Why We Put React in a Div and Not body](https://precodes.hashnode.dev/the-root-of-the-matter-why-we-put-react-in-a-div-and-not-body?utm_source=hashnode&utm_medium=feed)

Ever wondered why we define root in a div tag and not in body in React? 🤔

Mar 4, 2024 · 7 min read · precodes.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Prerana Nawar](https://hashnode.com/@precodes)

@precodes · Mumbai, India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
