Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #198 from inuscript/doc-create-eager-factory
Browse files Browse the repository at this point in the history
Fix document `createEagerFactory` tilte
  • Loading branch information
wuct authored Jun 13, 2016
2 parents c07d588 + f8c1ca0 commit 565eb43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,8 @@ createEagerElement(

React elements are lazily evaluated. But when a higher-order component renders a functional component, the laziness doesn't have any real benefit. `createEagerElement()` is a replacement for `React.createElement()` that checks if the given component is referentially transparent. If so, rather than returning a React element, it calls the functional component with the given props and returns its output.

### `createEagerFactory()`

```js
createEagerFactory(
type: ReactClass | ReactFunctionalComponent | string,
Expand Down

0 comments on commit 565eb43

Please sign in to comment.