react-flip-page icon indicating copy to clipboard operation
react-flip-page copied to clipboard

TypeError: Cannot set property 'FlipPage' of undefined

Open 17765 opened this issue 4 years ago • 1 comments

using <FlipPage ref={(component) => { this.FlipPage = component; }}> gives me this error. What's happening?

the full code: Plus.zip

17765 avatar Jul 07 '21 09:07 17765

You are trying to set a FlipPage property on this, while not being inside a class or a function. I would recommend you use the useRef hook.

darenju avatar Jul 13 '21 16:07 darenju