1.0.4 • Published 4 years ago
qree v1.0.4
$ returns the first element in the DOM (document.querySelector)
$$ returns an array of elements from the DOM (document.querySelectorAll)
Installation
npm i qree --save
import {$, $$} from 'qree';
Or via CDN
<script src="https://cdn.jsdelivr.net/npm/qree@1.0.3-alpha.1/dist/qree.min.js">
Usage
let button = $(selector)
let headings = $$(headings)
Example
let button = $('#click-me'); // Get the button with ID "click-me"
let headings = $$('article > h1'); // Get all H1 tags inside article
1.0.4-alpha.3
4 years ago
1.0.4
4 years ago
1.0.4-alpha.1
4 years ago
1.0.4-alpha.2
4 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago