---
title: "Discussion on \"Mastering createPortal in ReactJS: How to create portals in ReactJS\" | Hashnode"
description: "Discussion on \"Mastering createPortal in ReactJS: How to create portals in ReactJS\". What is createPortal\nAs per the official documentation, createPortal let us render some children into a different part of the DOM.\nIn simple words,createPortal lets you to render the component outside the current parent, or hierarchy.\n\n\nIn above diag..."
url: "https://hashnode.com/posts/mastering-createportal-in-reactjs-how-to-create-portals-in-reactjs/66f8dad802917cbf88e75a2e"
---

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

Discussion

# [Mastering createPortal in ReactJS: How to create portals in ReactJS](https://sumitmupadhyay.hashnode.dev/mastering-createportal-in-reactjs-how-to-create-portals-in-reactjs?utm_source=hashnode&utm_medium=feed)

What is createPortal As per the official documentation, createPortal let us render some children into a different part of the DOM. In simple words,createPortal lets you to render the component outside the current parent, or hierarchy. In above diag...

Sep 29, 2024 · 2 min read · sumitmupadhyay.hashnode.dev  
Read the article

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

## Written by

[Sumit Upadhyay](https://hashnode.com/@sumitupadhyay)

@sumitupadhyay · India 🇮🇳

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

Software Developer

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
