Function jsxcreate
- jsxcreate(
element: string | CreateElementFunction,
attributes: CreateAttributes,
...childNodes: (string | number | Node)[],
): HTMLElementFunction to create for jsx, create elements directly (instead of virtual dom nodes).
import * as dompack from 'dompack';
/* @jsx dompack.jsxcreate / / @jsxFrag dompack.jsxfragment */ your code
Parameters
- element: string | CreateElementFunction
Name of the element to create
- attributes: CreateAttributes
- ...childNodes: (string | number | Node)[]
Any child nodes to add immediately
Returns HTMLElement
- element: string | CreateElementFunction
Function to create for jsx, create elements directly (instead of virtual dom nodes).
import * as dompack from 'dompack';
/* @jsx dompack.jsxcreate / / @jsxFrag dompack.jsxfragment */ your code