Skip to content

Commit

Permalink
馃敟 Installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfluck committed Apr 8, 2019
1 parent be17c6a commit 885a7f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -3,6 +3,16 @@

React Condition works with React Hooks as part of [@leebyron](https://github.com/leebyron)'s React Velcro architecture

# Installation

```sh
$ yarn add react-condition
```

```sh
$ npm i react-condition
```

## If conditions

Use the `test` prop with `<If>` and `<ElseIf>` elements to conditionally include certain elements. When an `<If>` test is _truthy_ it does not render any `<ElseIf>` or `<Else>` children. However when it is _falsey_ it _only_ renders `<ElseIf>` and `<Else>` children.
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-condition",
"version": "1.0.0",
"version": "3.0.0",
"description": "React Condition works with React Hooks as part of @leebyron's React Velcro architecture",
"main": "react-condition.js",
"types": "react-condition.d.ts",
Expand Down

0 comments on commit 885a7f5

Please sign in to comment.