Closed RamyEl-basyouni closed 4 years ago
I agree @RamyEl-basyouni . I've been pondering about this myself. Care for a PR? I'd love to point you in the right direction?
Hey @RamyEl-basyouni! I've just released a new version that supports useRef
. I'd love for some feedback
:tada: This issue has been resolved in version 4.19.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
while converting stateful component to hook, instances variables in class is not coverted to its equivalent in hooks which is useRef(). https://reactjs.org/docs/hooks-faq.html#is-there-something-like-instance-variablesso any code with syntax:
this.sView
should be:const sView = useRef()