John explains what knowing Christ is by explaining what living in the light is. From John's perspective, hating a brother is living in darkness. Loving our brothers/sisters is living in the light. This is how Jesus lived, and this is how we can say that we know Christ.