Skip to content
Compare
Choose a tag to compare
@fabiancook fabiancook released this 29 Jul 10:12
· 8 commits to main since this release

This version includes:

prepare:

import {prepare} from "@virtualstate/kdl";

const node = (
    <main>
        <h1>@virtualstate/focus</h1>
        <blockquote>Version: <span>1.0.0</span></blockquote>
    </main>
);
const [span] = await prepare(
    node,
    `main blockquote > span`
);
console.log(span); // Is the node for <span>1.0.0</span>