calendarRef.current.getApi() is not working and getApi() not available in React useRef
KishanKumarNR opened this issue · comments
calendarRef.current.getApi() is not working and getApi() is not available in React useRef
using react and typescript
React.createRef() is not supported in class component context in
const calendarRef = React.createRef();
// not working - error ref is not supported with legacy createRef
Function component :
const calendarRef = useRef();
calendarApi = calendarRef.current.getApi(); // error getApi() does not exist in ref
Please refer to the support page and use Stack Overflow for help. If this is a bug, please supply a runnable, stripped-down demonstration.