6 lines
238 B
TypeScript
6 lines
238 B
TypeScript
export abstract class Component {
|
|
protected children = new Set<Component>(); //TODO if react stub these as react will manage the instances from beings gc'ed better.
|
|
protected parent: Component | null = null;
|
|
abstract native: any;
|
|
}
|