Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Duarte Monteiro du5rte

🏠
Working from home
View GitHub Profile
@du5rte
du5rte / HoverDecorator.jsx
Last active May 8, 2017 — forked from laem/HoverDecorator.jsx
React Hover Component Decorator
View HoverDecorator.jsx
import React, { Component } from "react"
export default function hoverDecorator(InitialComponent) {
return class HoverDecorator extends Component {
constructor() {
super()
this.state = {
hover: false
}