Browse Source

deleting some unecessary newline

main
iamchenxin 9 years ago
parent
commit
44b52dfe1d
  1. 4
      docs/ref-01-top-level-api.md
  2. 3
      docs/ref-03-component-specs.md
  3. 3
      docs/ref-05-events.md

4
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`, 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`.
the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a
`ReactClass`.
### React.isValidElement ### React.isValidElement

3
docs/ref-03-component-specs.md

@ -161,8 +161,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. 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 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.
transition to the new props and state will not require a component update.
```javascript ```javascript
shouldComponentUpdate: function(nextProps, nextState) { shouldComponentUpdate: function(nextProps, nextState) {

3
docs/ref-05-events.md

@ -61,8 +61,7 @@ function onClick(event) {
## Supported Events ## Supported Events
React normalizes events so that they have consistent properties across React normalizes events so that they have consistent properties across different browsers.
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. 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.

Loading…
Cancel
Save