#Syntax-sugar for binding state to window or client size?

2 messages · Page 1 of 1 (latest)

whole sage
#

Is there a syntax-sugar for easily binding state to window size or something?

Similar to svelte:

<script>
  let clientHeight;
</script>

<div bind:clientHeight={clientHeight} />
pearl cradle
#

no the transform is very minimal. there are directives with which you could make this yourself, but nobody likes using them because typescript support is a bit shitty, so they never really hit off.