I am using react version of fullcalendar and this is a part of my component:
const itMaker = React.useRef();
...
<FullCalendar
ref={itMaker}
...
customButtons={{
prev: {
click: function () {
console.log('itMaker', itMaker)
itMaker.current.calendar.incrementDate({ days: -1 });
}
}
}}
useref() result is different in v4 and v5. The result in v4 is the same as bellow:

❌ And this is the result of useref() in fullcalendar v5:

The problem is that calendar exists in useref() in v4 but not in v5!!