Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created March 30, 2014 06:50
Show Gist options
  • Save Raynos/9868732 to your computer and use it in GitHub Desktop.
Save Raynos/9868732 to your computer and use it in GitHub Desktop.
// previous
var thunk1 = Thunk('one');
var thunk2 = Thunk('two');
var prevTree = h('div', [
thunk1,
thunk2
])
var thunk3 = Thunk('one')
var nextTree = h('div', [
thunk3, // update called with prev === thunk1
thunk3 // update called with prev === thunk2
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment