You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So in this case it means I will be converting all the class components which use "window.addEventListener('resize', this.recordWindowWidth)" in the method "componentDidMount" into functional components.
All of these calls in componentDidMount:
Should be replaced with: https://github.com/streamich/react-use/blob/master/docs/useWindowSize.md
The text was updated successfully, but these errors were encountered: