Skip to content

Instantly share code, notes, and snippets.

View cvara's full-sized avatar
🐢
I may be slow to respond.

Christoforos Varakliotis cvara

🐢
I may be slow to respond.
View GitHub Profile
@cvara
cvara / Enhance.js
Created October 11, 2016 12:09 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {