Skip to content

Instantly share code, notes, and snippets.

Last active Oct 8, 2017
What would you like to do?
Didact fiber data structure
let fiber = {
type: "div",
parent: parentFiber,
child: childFiber,
sibling: null,
alternate: currentFiber,
stateNode: document.createElement("div"),
props: { children: [], className: "foo"},
partialState: null,
effectTag: PLACEMENT,
effects: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment