The target DOM node must already exist when createPortal is called.
Question 8 of 20 in React Portals Quiz