DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
React Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
easy
React
When a component is rendered via createPortal into a different DOM node, what happens to its position in the REACT tree?
A
It also moves to be a child of the portal's target DOM node's owner
B
It stays exactly where it's written in JSX — unaffected by the portal's DOM target
C
It becomes a root-level component with no parent
D
It's duplicated in both trees
Check Answer