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