import classNames from 'classnames' import { Component } from 'react' export default class LikeButton extends Component { constructor(props) { super(props); this.state = { liked: false, count: 100 }; } onClickAddLikeHandler = () => { this.setState({ count: this.state.count + 1, liked: true }); }; onClickRemoveLikeHandler = () => { this.setState({ count: this.state.count - 1, liked: false }); }; render() { const { liked, count } = this.state; return ( <>