/LikesComponent.js Secret
Created
February 3, 2021 17:05
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import HOC from "./HOC"; | |
class LikesCount extends Component { | |
render() { | |
return ( | |
<div> | |
{this.props.CountNumber} <br /> | |
<button onClick={this.props.handleCLick}>Like👍🏻</button> | |
</div> | |
); | |
} | |
} | |
const EnhancedLikes = HOC(LikesCount, 5); | |
export default EnhancedLikes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment