We've also used the lifecycle method componentWillUnmount to unregister the resize event. Let's replicate the above class-based code in our Hook ...
確定! 回上一頁