Skip to content

0.1.31 - from()

Choose a tag to compare

@ihasq ihasq released this 27 Jul 11:10
· 70 commits to main since this release
import { $ } from 'hstd';

const $innerWidth = $(innerWidth).from(resolve => {
    addEventListener("resize", () => resolve(innerWidth), { passive: true })
});

$innerWidth.watch($ => console.log($)); // shows current innerWidth!