A modal is rendered through `createPortal(<Modal />, document.body)`. A click inside the modal does NOT trigger a React `onClick` handler on an ancestor that wraps the `createPortal(...)` call in the JSX tree. Is that expected?
function Parent() {
return (
<div onClick={handleParentClick}>
{createPortal(<button>Save</button>, document.body)}
</div>
);
}