Fix semantic HTML for better embedding
This commit is contained in:
parent
dc95275086
commit
30d6d1dddd
@ -82,7 +82,8 @@ export const AnimatedListDemo = () => {
|
|||||||
useAnimatedListItems({ keys: items });
|
useAnimatedListItems({ keys: items });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main>
|
<>
|
||||||
|
<div className="buttons">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -119,7 +120,7 @@ export const AnimatedListDemo = () => {
|
|||||||
>
|
>
|
||||||
Remove
|
Remove
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
<ol>
|
<ol>
|
||||||
{items.map((item) => {
|
{items.map((item) => {
|
||||||
return (
|
return (
|
||||||
@ -133,6 +134,6 @@ export const AnimatedListDemo = () => {
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</ol>
|
</ol>
|
||||||
</main>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@ class AnimatedListComponent extends HTMLElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
const rootNode = document.createElement('main');
|
const rootNode = document.createElement('section');
|
||||||
this.appendChild(rootNode);
|
this.appendChild(rootNode);
|
||||||
this.root = createRoot(rootNode);
|
this.root = createRoot(rootNode);
|
||||||
this.root.render(<AnimatedListDemo />);
|
this.root.render(<AnimatedListDemo />);
|
||||||
|
Loading…
Reference in New Issue
Block a user