Skip to content

Instantly share code, notes, and snippets.

@esurdam
esurdam / Enhance.js
Created December 17, 2015 13:16 — 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() {
@gergoerdi
gergoerdi / MIU.agda
Created June 3, 2012 13:17
The "MI to MU" puzzle from GEB
module MIU where
data Symbol : Set where
I : Symbol
U : Symbol
open import Data.List
Word : Set
Word = List Symbol