I'm using React Big calendar (https://github.com/intljusticemission/react-big-calendar) and I'm working on some responsive styling which involves detaching the overflow-x (horizontal scrollbar) of a div specifically .rbc-agenda-view and attaching it to the browser window. For reference .rbc-agenda-view
renders within the .rbc-calendar
div i.e. the BigCalendar component.
My question is: How can I use useRef()
on the .rbc-agenda-view
if I don't have access to it's component. The BigCalendars component structure does not allow you to drill down to the inner components.
Any help with this would be appreciated.
Thanks in advance.