import * as React from 'react'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent from '@mui/material/DialogContent'; import DialogContentText from '@mui/material/DialogContentText'; function TestStandardPropsCallbackRefUsage() { const contentRef = React.useRef(null); const setContentRef = React.useCallback((node: HTMLDivElement | null) => { contentRef.current = node; // ... }, []); return ( Dialog Demo Dialog content ); } function TestStandardPropsObjectRefUsage() { const contentRef = React.useRef(null); return ( Dialog Demo Dialog content ); }