I am trying to use doconut in react. all is good in the api but in react it was working but suddenly docViewer method is not working.
this is the code sample
const objImg = useRef(null)
objImg.current.docViewer(
{
showThumbs: docViewerConfig.showThumbs,
pageZoom: docViewerConfig.pageZoom,
zoomStep: docViewerConfig.zoomStep,
maxZoom: docViewerConfig.maxZoom,
BasePath: docViewerConfig.basePath,
ResPath: docViewerConfig.resPath,
fixedZoom: docViewerConfig.fixedZoom,
fixedZoomPercent: docViewerConfig.fixedZoomPercent,
fixedZoomPercentMobile: docViewerConfig.fixedZoomPercentMobile
})
<div ref={objImg} id="div_ctlDoc"></div>
i am getting TypeError: objImg.current.View is not a function
any advices?