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

Commit

Permalink
Add identity function to example code (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
inuscript authored and acdlite committed Jun 13, 2016
1 parent 565eb43 commit 0957624
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 @@ -308,6 +308,8 @@ Takes a component and returns a higher-order component version of that component
This is useful in combination with another helper that expects a higher-order component, like `branch()`:

```js
const identity = t => t

// `hasLoaded()` is a function that returns whether or not the the component
// has all the props it needs
const spinnerWhileLoading = hasLoaded =>
Expand Down

0 comments on commit 0957624

Please sign in to comment.