commitAllHostEffects
function commitAllHostEffects() {while (nextEffect !== null) {recordEffect()const effectTag = nextEffect.effectTagif (effectTag & ContentReset) {commitResetTextContent(nextEffect)}if (effectTag & Ref) {const current = nextEffect.alternateif (current !== null) {commitDetachRef(current)}}let primaryEffectTag = effectTag & (Placement | Update | Deletion)switch (primaryEffectTag) {case Placement: {commitPlacement(nextEffect)nextEffect.effectTag &= ~Placementbreak}case PlacementAndUpdate: {commitPlacement(nextEffect)nextEffect.effectTag &= ~Placementconst current = nextEffect.alternatecommitWork(current, nextEffect)break}case Update: {const current = nextEffect.alternatecommitWork(current, nextEffect)break}case Deletion: {commitDeletion(nextEffect)break}}nextEffect = nextEffect.nextEffect}}