Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "index"

Index

Functions

Functions

Const l

  • l(tag: string, props?: Record<string, string>, children?: string[] | string): string
  • Creates an HTML string

    Parameters

    • tag: string
    • Default value props: Record<string, string> = {}
    • Default value children: string[] | string = []

      Examples

      l("div", { id: "mydiv", className: "amazingNess" }, [
       l("button", { className: "btn btn--dark" }, "Click Me!"),
       l("p", { className: "text text--secondary" }, "Yeah do it!"),
       "No don't do it!"
      ])

    Returns string

Generated using TypeDoc