Class HyperZone

this is the base model for this library which must be extended by all JSX renders.

Hierarchy (view full)

Constructors

Properties

zones: HyperRender<any, any>[][] = []
configs: HyperZoneConfigs = {}

Methods

  • tests if the provided parameters, tag and props, are compatible this Zone's h method

    Parameters

    • tag: any
    • Optional props: any

    Returns boolean

  • creates an element out of its properties. functions similar to React.createElement

    Parameters

    • tag: typeof Fragment
    • props: null
    • Rest ...children: HyperZoneChildren

    Returns Element[]

  • Parameters

    • tag: any
    • props: any
    • Rest ...children: HyperZoneChildren

    Returns Element

  • Parameters

    Returns {
        h: {
            (tag, props, ...children): Element[];
            (tag, props, ...children): Element;
        };
        Fragment: typeof Fragment;
        setDefaultZone: ((...default_zone) => void);
        pushZone: ((...renderers) => typeof PushZone);
        popZone: (() => typeof PopZone);
    }

    • h: {
          (tag, props, ...children): Element[];
          (tag, props, ...children): Element;
      }
        • (tag, props, ...children): Element[]
        • Parameters

          • tag: typeof Fragment
          • props: null
          • Rest ...children: HyperZoneChildren

          Returns Element[]

        • (tag, props, ...children): Element
        • Parameters

          • tag: any
          • props: any
          • Rest ...children: HyperZoneChildren

          Returns Element

    • Fragment: typeof Fragment
    • setDefaultZone: ((...default_zone) => void)
        • (...default_zone): void
        • Parameters

          Returns void

    • pushZone: ((...renderers) => typeof PushZone)
        • (...renderers): typeof PushZone
        • Parameters

          Returns typeof PushZone

    • popZone: (() => typeof PopZone)
        • (): typeof PopZone
        • Returns typeof PopZone

Generated using TypeDoc