end(): (C extends void ? FC<P> : C) & { props: P }
end building process and return a component
Returns (C extends void ? FC<P> : C) & { props: P }
map
map<TName, TValue>(name: TName, mapper: ((value: TValue, props: P) => O[TName])): ComponentBuilder<void, O, P & (TValue extends void ? {[ key in string | number | symbol]?: TValue} : {[ key in string | number | symbol]: TValue})>
Type Parameters
TName extends string | number | symbol
TValue = O[TName]
Parameters
name: TName
mapper: ((value: TValue, props: P) => O[TName])
(value: TValue, props: P): O[TName]
Parameters
value: TValue
props: P
Returns O[TName]
Returns ComponentBuilder<void, O, P & (TValue extends void ? {[ key in string | number | symbol]?: TValue} : {[ key in string | number | symbol]: TValue})>
memo
memo(areEqual?: ((prev: P, next: P) => boolean)): ComponentBuilder<C, O, P>
end building process and return a component