createElementWithChildren

ReactElement createElementWithChildren(

  1. JSAny type,
  2. JSObject? props,
  3. List<JSAny> children
)

Create a React element with multiple children using spread

Implementation

ReactElement createElementWithChildren(
  JSAny type,
  JSObject? props,
  List<JSAny> children,
) =>
    ReactElement._(
      _createElementApply(type, props ?? JSObject(), children.toJS),
    );