hyperscript-string-async
An async/promisified version of hyperscript-string
Installation
Install hyperscript-string-async
using npm:
npm install --save hyperscript-string-async
Usage
Module usage
const h = ; ;
Related packages
hyperscript-string
- Create HTML strings with JavaScripthyperscript-normalize-args
- A hyperscript helper to normalize component arguments, for easier creation of reusable componentshyperscript-helpers
- Terse syntax for hyperscripthyperscript
- Create HyperText with JavaScript, on client or server.
API
ha(selector[, attrs, children])
Name | Type | Description |
---|---|---|
selector | String or Promise<String> |
Contains at least the HTML tag name |
attrs | Object or Promise<Object> or Object<Promise> |
Attributes for the HTML tag |
children | String or Array or Promise<String> or Promise<Array> or Array<Promise> |
The children for the HTML tag |
Returns: Promise<String>
, the generated HTML.
License
MIT © Joakim Carlstein