Skip to content
Rogain <Unless /> helper component
Branch: master
Clone or download
Latest commit 504ebd4 Mar 25, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.npmignore
LICENSE
README.md
index.js
package.json

README.md

rogain-component-unless

Returns it's children if data to value are not equal. If the <Else /> branch is defined, it will be returned when data and value are equal.

If value is not defined, Unless will have the same behavior as Empty.

<Unless data={loggedIn} value="true"><LoginForm /></Unless>

Attributes

data

Variable or Expression.

value

Variable or Expression. Optional.

Install

With npm do:

npm install rogain-component-unless

License

MIT

You can’t perform that action at this time.