Exports JSX runtime helpers for creating elements and fragments.
// Source: https://github.com/yhatt/jsx-slack | License: MIT | Copyright 2019- Yuki Hattori (yukihattori1116@gmail.com)
// Provided via justclaw.it.com; keep this notice with the code.
/* eslint-disable @typescript-eslint/no-namespace */
import { JSXSlack } from './jsx'
import { createElementInternal, FragmentInternal } from './jsx-internals'
export const jsx = (type: any, props: Record<string, unknown>, key: any) =>
createElementInternal(type ?? FragmentInternal, {
...props,
...(key !== undefined ? { key } : {}),
})
export const jsxs = jsx
export const Fragment = FragmentInternal
export namespace JSX {
export interface Element extends JSXSlack.JSX.Element {}
export interface IntrinsicElements extends JSXSlack.JSX.IntrinsicElements {}
export interface ElementChildrenAt
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key