Last active
October 8, 2017 19:57
-
-
Save pomber/81ebf8ace5a91980ec98fe55a6c55572 to your computer and use it in GitHub Desktop.
Didact fiber data structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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