Type alias MemberProps<ELEM>

MemberProps<ELEM>: {
    [member_key in keyof ELEM]?: ELEM[member_key]
}

the props used for explicitly declaring member assignments to make on the generated output of any HyperRender.h | Element Renderer.
note that many intrinsic properties of certain HTMLElements, such as value and checked, are also reflected as their "attributes", but they are merely there for the purpose of initialization, and not actual mutation (although it does work in many cases).
still, it is best to modify the property of an element if it is an intrinsic feature of that element, rather than modifying its attributes, since the property holds the "real"/"true" value, and usually in a primitive javascript object format, rather than being exclusively a string or null.

Type Parameters

  • ELEM = Element

Example

// assign `my_input.value = "hello"` and `my_input.disabled = true`
const my_input = <input value="default value" {...{
[MEMBERS]: {
value: "hello",
disabled: true,
} as MemberProps<HTMLInputElement>
}} />

Generated using TypeDoc