Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- componentDidUpdate(prevProps,prevState){
- if (prevProps.comment.is_comment_liked === this.props.comment.is_comment_liked && prevState.is_comment_liked === this.state.is_comment_liked && this.props.comment.is_comment_liked != this.state.is_comment_liked) {
- this.setState({like_comment_icon: ''})
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement