The rationale behind this change is to allow use of already declared react context on modals; because with portals, react propagates top context to the children, independently if they are direct descendant on dom or not.