Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

simple-stack-query

bholmesdev373MIT0.2.0TypeScript support: included

Select elements in Astro without the hassle

withastro, astro-integration

readme

Simple stack query

A simple library to query the DOM from your Astro components.

<RootElement>
  <button data-target="btn">Click me</button>
</RootElement>

<script>
  RootElement.ready(($) => {
    $('btn').addEventListener('click', () => {
      console.log("It's like JQuery but not!");
    });
  });
</script>

📚 Visit the docs for more information and usage examples.