-
-
Save codebucks27/c6c77d584ce49e41da26e2fc07e712a0 to your computer and use it in GitHub Desktop.
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