Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @virtualstate/kdl to implementations #278

Merged
merged 1 commit into from
Jul 29, 2022
Merged

Conversation

fabiancook
Copy link
Contributor

@fabiancook fabiancook commented Jul 29, 2022

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
Copy link
Member

zkat commented Jul 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants