0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/deno_dist/middleware/jsx/jsx-dev-runtime.ts

9 lines
266 B
TypeScript
Raw Normal View History

import { jsx } from './index.ts'
import type { JSXNode } from './index.ts'
export function jsxDEV(tag: string | Function, props: Record<string, any>): JSXNode {
const children = props.children ?? []
delete props['children']
return jsx(tag, props, children)
}