Skip to content

Commit a796529

Browse files
committed
comments for flow type nodes
1 parent 08d37c0 commit a796529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare interface Component {
2727
$refs: { [key: string]: Component | Element | Array<Component | Element> | void };
2828
$slots: { [key: string]: Array<VNode> };
2929
$scopedSlots: { [key: string]: () => VNodeChildren };
30-
$vnode: VNode;
30+
$vnode: VNode; // the placeholder node for the component in parent's render tree
3131
$isServer: boolean;
3232
$props: Object;
3333

@@ -63,7 +63,7 @@ declare interface Component {
6363
_isMounted: boolean;
6464
_isDestroyed: boolean;
6565
_isBeingDestroyed: boolean;
66-
_vnode: ?VNode;
66+
_vnode: ?VNode; // self root node
6767
_staticTrees: ?Array<VNode>;
6868
_hasHookEvent: boolean;
6969
_provided: ?Object;

0 commit comments

Comments
 (0)