feat: allow to modify rendered tree
This commit is contained in:
parent
36cb4e667d
commit
1dc675661a
3 changed files with 220 additions and 60 deletions
|
|
@ -1,5 +1,11 @@
|
|||
export type YarHTMLTagName = keyof React.JSX.IntrinsicElements | string;
|
||||
|
||||
export enum YarEffectTag {
|
||||
Update,
|
||||
Placement,
|
||||
Deletion,
|
||||
}
|
||||
|
||||
export type YarProps = {
|
||||
children: YarElement[];
|
||||
[key: string]: unknown;
|
||||
|
|
@ -15,4 +21,6 @@ export interface YarFiber extends YarElement {
|
|||
dom: null | HTMLElement | Text;
|
||||
child: null | YarFiber;
|
||||
sibling: null | YarFiber;
|
||||
alternate?: null | YarFiber;
|
||||
effectTag: null | YarEffectTag;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue