Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HoverCounter Component Refactored HOC Pattern
import React from 'react';
import EnhanceComponent from './EnhanceComponent'
const HoverCounter = (props) => {
return (
<h2 onMouseOver={props.increment}>
{props.count}</h2>
);
}
export default EnhanceComponent(HoverCounter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment