Skip to content

Commit

Permalink
Docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Le Cam committed Jan 21, 2015
1 parent 90711a2 commit c77f02c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
react-pure
==========

React components using Pure CSS
[React](http://facebook.github.io/react/) components using [Pure CSS](http://purecss.io/)

## Install

```bash
npm install hailocab/react-pure
```

React is also required as a peer dependency.

## Utils

### joinClasses

Merges an Array of Strings to a single String with spaces, filtering out falsy values.
Reduces its arguments to a single string separating values with spaces and filtering out falsy ones.

Example:
```js
joinClasses('react-pure', 'component']); // 'react-pure component'
joinClasses(['react-pure', undefined, false && 'super', 'component']); // 'react-pure component'
joinClasses('react-pure', 'component'); // 'react-pure component'
joinClasses('react-pure', undefined, false && 'super', 'component'); // 'react-pure component'
```

A common use case is to add the `className` property:
Expand Down

0 comments on commit c77f02c

Please sign in to comment.