end to end
                            parentElement.appendChild(node);
                        } else {
                            // Insert before target position
                            const referenceNode = parentElement.children[targetIndex];
                            parentElement.insertBefore(node, referenceNode);
                        }
                    }
                });
            }

            

            function initialRender(parentElement, newItems, renderItem, keyFn, contex