Comment

Comment by Rockslide

OK, this isn't really important for the quintessence of the article. But I'm surprised again and again how many developers write code like

  if (weAreConnected === true) {
      this.setState({
        isConnected: true
      })
    }
    else {
      this.setState({
        isConnected: false
      })
    }
  }
instead of

  this.setState({
    isConnected: weAreConnected
  })
parent Rockslide 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton