---
title: "Discussion on \"Using React Portals to Render Components Outside the Main DOM Tree\" | Hashnode"
description: "Discussion on \"Using React Portals to Render Components Outside the Main DOM Tree\". React portals are a way to render a component outside of its parent component’s DOM tree. This can be useful in situations where you want to render a compon"
url: "https://hashnode.com/posts/using-react-portals-to-render-components-outside-the-main-dom-tree/63d1e64bf6ae624f5267e06c"
---

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

Discussion

# [Using React Portals to Render Components Outside the Main DOM Tree](https://nidhisharma.hashnode.dev/using-react-portals-to-render-components-outside-the-main-dom-tree?utm_source=hashnode&utm_medium=feed)

React portals are a way to render a component outside of its parent component’s DOM tree. This can be useful in situations where you want to render a compon

Jan 26, 2023 · 2 min read · nidhisharma.hashnode.dev  
Read the article

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

## Written by

[nidhi sharma](https://hashnode.com/@nidhisharma)

@nidhisharma · India,UP

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

Frontend Developer

Hi there! My name is Nidhi sharma and I am a frontend developer currently working as an intern. I have a strong passion for creating user-friendly and visually appealing websites and applications, and I am always looking to learn and improve my skills. As a frontend developer, I use a variety of programming languages and tools, such as HTML, CSS, and JavaScript, React, to bring my designs to life and make them interactive and responsive. I am excited to have the opportunity to learn from and contribute to a team of experienced developers. I am eager to take on new challenges and to apply my skills and knowledge to real-world projects.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
