feat: allow to modify rendered tree

This commit is contained in:
Alexander Navarro 2024-06-26 10:42:18 -04:00
parent 36cb4e667d
commit 1dc675661a
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
3 changed files with 220 additions and 60 deletions

View file

@ -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;
}