@samitouri / QOS-React / commits / 9511b4fe29

docs: re-position comments to account for code sample width (#7602)

Nik Nyby committed Aug 29, 2016 at 13:08 UTC 9511b4fe291885f49f204e0324d5b8cc6d22b018
1 file changed +5 -2
docs/docs/ref-05-events.md
+5 -2
@@ -50,8 +50,11 @@ function onClick(event) {
50 console.log(eventType); // => "click"
51 }, 0);
52
53 - this.setState({clickEvent: event}); // Won't work. this.state.clickEvent will only contain null values.
54 - this.setState({eventType: event.type}); // You can still export event properties.
53 + // Won't work. this.state.clickEvent will only contain null values.
54 + this.setState({clickEvent: event});
55 +
56 + // You can still export event properties.
57 + this.setState({eventType: event.type});
58 }
59 ```
60