-
-
Save codebucks27/50801170e74be48ed65c9b7d3a67ca5c 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 CommentsCount extends Component { | |
render() { | |
return ( | |
<div> | |
Total Comments : {this.props.CountNumber} <br /> | |
<button onClick={this.props.handleCLick}>Add Comment!</button> | |
</div> | |
); | |
} | |
} | |
const EnhancedComments = HOC(CommentsCount, 10); | |
export default EnhancedComments; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment