bind critical element lifecycle methods to reconciler lifecycle methods
The critical lifecycle methods involve creating and appending elements
Already done in phaseC
createInstance(
type: Type,
props: Props,
_rootContainerInstance: Container,
_hostContext: HostContext
): Instance {
return createElement(type, props);
}
appendChild(parentInstance: Instance, child: Instance | TextInstance): void {
parentInstance.appendChild(child);
}
Already done in phaseC
appendChildToContainer(
container: Container,
child: Instance | TextInstance
): void {
container.appendChild(child);
}
appendInitialChild(
parentInstance: Instance,
child: Instance | TextInstance
): void {
log.debug('appendInitialChild');
parentInstance.appendChild(child);
}
npm run start