Skip to content

Instantly share code, notes, and snippets.

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}>
export default EnhanceComponent(HoverCounter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment