Trying to pass in the Nextjs Image component as the imageComponent.
But getting a warning like this and magnify does not work.
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of CursorPosition.
at ZoroImageComp
at div
at CursorPosition (webpack-internal:///./node_modules/@blacklab/react-image-magnify/dist/src/CursorPosition.js:87:13)
at ReactImageMagnify (webpack-internal:///./node_modules/@blacklab/react-image-magnify/dist/src/ReactImageMagnify.js:34:13)
at div
Trying to pass in the Nextjs Image component as the imageComponent. But getting a warning like this and magnify does not work.
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of
CursorPosition
. at ZoroImageComp at div at CursorPosition (webpack-internal:///./node_modules/@blacklab/react-image-magnify/dist/src/CursorPosition.js:87:13) at ReactImageMagnify (webpack-internal:///./node_modules/@blacklab/react-image-magnify/dist/src/ReactImageMagnify.js:34:13) at divAny help or example would be much appreciated.