),
};
const App = () => {
const [modal, contextHolder] = Modal.useModal();
return (
{/* `contextHolder` should always under the context you want to access */}
{contextHolder}
{/* Can not access this context since `contextHolder` is not in it */}
);
};
ReactDOM.render(, mountNode);
```