I am reading the official document of material-ui’s
Drawer component, and I found a
container prop and I do not have an idea where it comes from. It is not mentioned in its API documentation. Is this one of the built-in react component’s props?
Below is a screenshot of the responsive drawer component from material-ui: https://material-ui.com/components/drawers/#responsive-drawer
Ok, I found that after your guidance, That prop is coming from the
Modal props because it extends with
container - HTML element | React.Component | func HTML element, component instance, or function that returns either. The container will have the portal children appended to it. By default, it uses the body of the top-level document object, so it's simply document.body most of the time.
Modal Props: https://material-ui.com/api/modal/