@wazapp/helpers
API
each(collection, onItem, onEmpty)
Example
import Component from "@wazapp/component";
import { each } from '@wazapp/helpers'
export default class MyComponent extends Component {
phrases = ['Maciej', 'was', 'here'];
template({ name }) {
return (
<ul>
{this.phrases.map((phrase) => (
<li key={phrase}>
{phrase}
</li>
))}
</ul>
);
}
}when(condition, ifTrue, ifFalse)
Example
classNames()
yieldChildren(children, ...args)
Last updated