Open matzimowski opened 10 months ago
instead of accessing DOM to find nested components, ie:
const isNestedDialog = overlayRef.current?.parentElement?.closest(DIALOG_SELECTOR);
use React Context API
good read: https://www.aleksandrhovhannisyan.com/blog/react-context-nested-components/
instead of accessing DOM to find nested components, ie:
use React Context API
good read: https://www.aleksandrhovhannisyan.com/blog/react-context-nested-components/