From 0983d2dbcf5aee5ae93a4329bb19c7aac97d90e8 Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Mon, 29 Aug 2016 13:08:07 -0400 Subject: [PATCH] docs: re-position comments to account for code sample width (#7602) (cherry picked from commit 9511b4fe291885f49f204e0324d5b8cc6d22b018) --- docs/docs/ref-05-events.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/docs/ref-05-events.md b/docs/docs/ref-05-events.md index fbad5411bb..796f6ffb38 100644 --- a/docs/docs/ref-05-events.md +++ b/docs/docs/ref-05-events.md @@ -50,8 +50,11 @@ function onClick(event) { console.log(eventType); // => "click" }, 0); - this.setState({clickEvent: event}); // Won't work. this.state.clickEvent will only contain null values. - this.setState({eventType: event.type}); // You can still export event properties. + // Won't work. this.state.clickEvent will only contain null values. + this.setState({clickEvent: event}); + + // You can still export event properties. + this.setState({eventType: event.type}); } ```