mainEl
MainElement
mainEl(
Create a main element
Implementation
MainElement mainEl({
List<ReactElement>? children,
ReactElement? child,
Map<String, dynamic>? props,
Map<String, dynamic>? style,
String? className,
}) {
final p = _buildProps(props: props, style: style, className: className);
final jsObj = (children != null && children.isNotEmpty)
? createElementWithChildren('main'.toJS, _propsOrNull(p), children)
: (child != null)
? createElement('main'.toJS, _propsOrNull(p), child)
: createElement('main'.toJS, _propsOrNull(p));
return MainElement.fromJS(jsObj);
}