diff --git a/src/AnimatedListDemo.tsx b/src/AnimatedListDemo.tsx index 00101e8..e027962 100644 --- a/src/AnimatedListDemo.tsx +++ b/src/AnimatedListDemo.tsx @@ -82,44 +82,45 @@ export const AnimatedListDemo = () => { useAnimatedListItems({ keys: items }); return ( -
- - - - - + <> +
+ + + + +
    {items.map((item) => { return ( @@ -133,6 +134,6 @@ export const AnimatedListDemo = () => { ); })}
-
+ ); }; diff --git a/src/index.tsx b/src/index.tsx index 2ea5269..ba1d154 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -10,7 +10,7 @@ class AnimatedListComponent extends HTMLElement { } connectedCallback() { - const rootNode = document.createElement('main'); + const rootNode = document.createElement('section'); this.appendChild(rootNode); this.root = createRoot(rootNode); this.root.render();