deno.land / x / nano_jsx@v0.1.0 / jsx-runtime / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* eslint-disable prefer-const */export { Fragment } from '../fragment.ts'import { h } from '../core.ts'
const createNode: (type: any, props: any, key: string, source?: string, self?: string) => any = function (type, props) { let { children = [], ..._props } = props if (!Array.isArray(children)) children = [children] return h(type, _props, ...children)}
export { createNode as jsx }export { createNode as jsxs }export { createNode as jsxDev }
nano_jsx

Version Info

Tagged at
8 months ago