Skip to content
Rogain <Defined /> helper component
Branch: master
Clone or download
Latest commit d256c2b Mar 23, 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-defined

Returns children if data is a non-empty Array, non-empty Object, or defined variable. If the <Else /> branch is defined, it will be returned when data is empty or undefined.

<Defined data={searchResults}><Results /></Defined>

Attributes

data

Variable or Expression.

Install

With npm do:

npm install rogain-component-defined

License

MIT

You can’t perform that action at this time.