Interface HyperScript_CreateElement
interface HyperScript_CreateElement { (html_tag,
attrs?,
...children): HTMLElement; <P>(component,
props?,
...children): Element; <P>(fragment_component,
props?,
...siblings): Element[]; <P>(component,
props?,
...children): Element | Element[]; } - HyperScript_CreateElement(html_tag, attrs?, ...children): HTMLElement
Parameters
- html_tag: string
Optional
attrs: null | ElementAttrsRest
...children: ElementChildren
Returns HTMLElement
- HyperScript_CreateElement<P>(component, props?, ...children): Element
Parameters
- component: SingleComponentGenerator<P>
Optional
props: null | PRest
...children: ElementChildren
Returns Element
- HyperScript_CreateElement<P>(fragment_component, props?, ...siblings): Element[]
Parameters
- fragment_component: FragmentComponentGenerator<P>
Optional
props: null | PRest
...siblings: ElementChildren
Returns Element[]
- HyperScript_CreateElement<P>(component, props?, ...children): Element | Element[]
Returns Element | Element[]
function signature of the hyperscript DOM generator function.