@jsx6/jsx-dev-runtime
v1.8.13
Published
JSX dev runtime for jsx6
Downloads
31
Maintainers
Readme
JSX dev runtime
to use with esbuild cli:
--jsx=automatic --jsx-import-source=@jsx6 --jsx-dev
or esbuild JS API:
{
jsx: "automatic",
jsxImportSource: "@jsx6",
jsxDev: true,
}
jsxDEV
function
Create a development element (TypeScript type).
Parameters:
type
(unknown
) — element type:Fragment
symbol, tag name (string
), componentprops
([Props
][api-props]) — element props,children
, and maybenode
key
(string
orundefined
) — dynamicly generated key to useisStaticChildren
(boolean
) — whether two or more children are passed (in an array), which is whetherjsxs
orjsx
would be used in production runtimesource
([Source
][api-source]) — info about sourceself
(undefined
) — this is used by frameworks that have components
sample source entry:
{
fileName: "src/someFile.jsx",
lineNumber: 4,
columnNumber: 5
}