@jsx6/jsx-dev-runtime
v1.8.13
Published
JSX dev runtime for jsx6
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:Fragmentsymbol, tag name (string), componentprops([Props][api-props]) — element props,children, and maybenodekey(stringorundefined) — dynamicly generated key to useisStaticChildren(boolean) — whether two or more children are passed (in an array), which is whetherjsxsorjsxwould 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
}