@dutchie/zah
v1.3.1
Published
The ZahBah Monster's Utility-Belt
Downloads
95
Readme
Zah
The ZahBah Monster's Utility-Belt
Installation
npm install --save dutchie/zah
Usage
You can either use CJS or ES6 Modules with this package.
For example - if you would just like to use the UI components:
import {UI as ZahUI} from 'zah';
UI
Zah provides a handful of helpful React components.
<ZahUI.Imgix />
A wrapper around the Imgix React component.
Scrubs Dutchie URL's for S3 URL's and replaces them with imgix URL. All other properties are passthroughs.
Utils
Zah.call()
Provides a promise-ified version of Meteor.call
. You can pass all the normal arguments, but instead of having to pass a callback, you can simply use .then()
or go for the 🇼 and use let response = await Zah.call()
.