From a8084236265afd93e7bd59e29f646d11996e8b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 12 Jan 2016 09:57:32 -0800 Subject: [PATCH] Merge pull request #5732 from iamchenxin/en-docs [docs] deleting some unecessary newline (cherry picked from commit 9494ec80c2ecc89a951b15fa93fd503814d27121) --- docs/docs/ref-01-top-level-api.md | 4 +--- docs/docs/ref-03-component-specs.md | 3 +-- docs/docs/ref-05-events.md | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/docs/ref-01-top-level-api.md b/docs/docs/ref-01-top-level-api.md index 4fdcdfd5b0..7aeb7158dc 100644 --- a/docs/docs/ref-01-top-level-api.md +++ b/docs/docs/ref-01-top-level-api.md @@ -66,9 +66,7 @@ factoryFunction createFactory( ) ``` -Return a function that produces ReactElements of a given type. Like `React.createElement`, -the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a -`ReactClass`. +Return a function that produces ReactElements of a given type. Like `React.createElement`, the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a `ReactClass`. ### React.isValidElement diff --git a/docs/docs/ref-03-component-specs.md b/docs/docs/ref-03-component-specs.md index 6e00ad5254..9e5a956209 100644 --- a/docs/docs/ref-03-component-specs.md +++ b/docs/docs/ref-03-component-specs.md @@ -163,8 +163,7 @@ boolean shouldComponentUpdate( Invoked before rendering when new props or state are being received. This method is not called for the initial render or when `forceUpdate` is used. -Use this as an opportunity to `return false` when you're certain that the -transition to the new props and state will not require a component update. +Use this as an opportunity to `return false` when you're certain that the transition to the new props and state will not require a component update. ```javascript shouldComponentUpdate: function(nextProps, nextState) { diff --git a/docs/docs/ref-05-events.md b/docs/docs/ref-05-events.md index affe1a366c..d64bd8ee37 100644 --- a/docs/docs/ref-05-events.md +++ b/docs/docs/ref-05-events.md @@ -61,8 +61,7 @@ function onClick(event) { ## Supported Events -React normalizes events so that they have consistent properties across -different browsers. +React normalizes events so that they have consistent properties across different browsers. The event handlers below are triggered by an event in the bubbling phase. To register an event handler for the capture phase, append `Capture` to the event name; for example, instead of using `onClick`, you would use `onClickCapture` to handle the click event in the capture phase.