Comment

Comment by WalterSear

Or

  this.setState({
    isConnected: Boolean(weAreConnected)
  })
If you want to be super obvious, and aren't using a type system.
parent WalterSear 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton