Skip to content

Instantly share code, notes, and snippets.

@pomber
Last active Oct 8, 2017
Embed
What would you like to do?
Didact fiber data structure
let fiber = {
tag: HOST_COMPONENT,
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