Skip to content

jsxAttr

reference
1 min readUpdated

Kind: Function

Source: src/jsx/jsx-runtime.ts

Part of: Jsx

Signature

ts
function jsxAttr(key: string, v: string | Promise<string> | Record<string, string | number | null | undefined | boolean>): HtmlEscapedString | Promise<HtmlEscapedString>

Parameters

NameType
keystring
v`string

Returns: HtmlEscapedString | Promise<HtmlEscapedString>

Relationships

  • IMPORTS → html
  • IMPORTS → html
  • IMPORTS → escapeToBuffer
  • IMPORTS → stringBufferToString
  • IMPORTS → isValidAttributeName
  • IMPORTS → styleObjectForEach
  • IMPORTS → jsxDEV
  • IMPORTS → jsxDEV

Was this page helpful?

Download as PDF
jsxAttr — Hono (narrator proof)