Question · JavaScript and React course · Module 10: React Ecosystem and Future

React Portals - Usage

What are React Portals (createPortal) used for?

Answer options

  • For transferring data between independent React applications
  • For caching rendered components in localStorage
  • For rendering a child component in a different DOM node outside the parent hierarchy
  • For creating new browser windows with React components

You can check the correct answer by solving this task in the CodeWorlds game.