Skip to content

Instantly share code, notes, and snippets.

@codebucks27
Created February 3, 2021 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codebucks27/c6c77d584ce49e41da26e2fc07e712a0 to your computer and use it in GitHub Desktop.
Save codebucks27/c6c77d584ce49e41da26e2fc07e712a0 to your computer and use it in GitHub Desktop.
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