Skip to content
RED SAGSkills
hard20 pts · first answer countsreacteventsportals

Clicks inside a portal

A modal is rendered with createPortal into document.body, but in JSX it sits inside a <div onClick={closeMenu}>. Clicking inside the modal calls closeMenu. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions