In a React class, you would typically set up a subscription in componentDidMount , and clean it up in componentWillUnmount . For example, let's say we have ...
確定! 回上一頁