kdl-org / kdl

the kdl document language specifications
https://kdl.dev
Other
1.09k stars 61 forks source link

Add @virtualstate/kdl to implementations #278

Closed fabiancook closed 2 years ago

fabiancook commented 2 years ago

This includes @virtualstate/kdl in the implementation list

Currently the primary focus of the module is to provide a query syntax for JSX nodes, using KDL Query Language

e.g.

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>
zkat commented 2 years ago

Please remember to also make a PR to the website to add it there!