h<P extends Map> function

Component<Map, BaseState> h <P extends Map>(
  1. [String tagName,
  2. dynamic props,
  3. List childrens]
)

Implementation

Component h<P extends Map>([String tagName, dynamic props, List childrens]) {
  if (props is List) {
    childrens = props;
    props = {};
  }
  var context = BaseContext<P>(tagName: tagName, props: props ?? {}, childrens: childrens ?? []);
  return  Component.replaceContext(context);
}