DEV Community

Discussion on: React: Using portals to make a modal popup

Collapse
 
nidamunir profile image
Nida Munir

What is the type of parent? Element? Can we use id?

Collapse
 
link2twenty profile image
Andrew Bone

In this code it needs to be an HTMLElement, I would generally use ref.