{"size": 647, "ext": "js", "max_stars_repo_path": "exercises/src/component-patterns/hoc.js", "max_stars_repo_name": "souvikbasu/react-advanced-workshop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "exercises/src/component-patterns/hoc.js", "max_issues_repo_name": "souvikbasu/react-advanced-workshop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "exercises/src/component-patterns/hoc.js", "max_forks_repo_name": "souvikbasu/react-advanced-workshop", "max_forks_repo_forks_event_min_datetime": "2018-09-25T05:45:39.000Z", "max_forks_repo_forks_event_max_datetime": "2018-09-25T05:45:39.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 20.21875, "max_line_length": 78, "alphanum_fraction": 0.71561051}
import React from "react";

/**
 * Utility to calculate the display name of a React Component.
 */
const getDisplayName = WrappedComponent => {
  return WrappedComponent.displayName || WrappedComponent.name || "Component";
};

/**
 * HOC
 */
const logProps = WrappedComponent => {};

/**
 * Display current count from props
 */
class ChildComponent extends React.Component {}

/**
 * Enhance the child Component
 */
const WithLog = logProps(ChildComponent);

/**
 * A React class with counter, which increments on press of a button.
 * It passes the current count to its child
 */
class Counter extends React.Component {}

export default Counter;
