News for hackers. Stuff that matters.
Re:Comparing Svelte and React by brundolf on Wednesday March 24, 2021 @04:54PM (#26572771)
This is a utility function I carry around between projects for the "logging within a pure expression" case:

  function log(expr) {
    console.log(expr);
    return expr;
  }

  onMount(() => log(listenForAuthChanges()))

There are no comments on this comment yet.