react-qrbtf
react-qrbtf copied to clipboard
QRResImage 遇到两个使用错误
Hello,在使用时候碰到2个issue
一. 在使用QRResImage时候,我估计可能是依然react-dom版本低了 Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
- You might have mismatching versions of React and the renderer (such as React DOM)
- You might be breaking the Rules of Hooks
- You might have more than one copy of React in the same app See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
二. ReferenceError: window is not defined
在使用window前是否可以先判读下window是否已经加载了?
同时非常感谢,你们做的插件非常的棒。