@simplestack/query
v0.3.0
Published
Add client JS to your Astro components, without the query selectors
Maintainers
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.
