What is the last parameter of ReasonReact.wrapReasonForJs?

reasonreact

#1

Hi

Consider the following code:

let jsComponent =
  ReasonReact.wrapReasonForJs(
    ~component,
    (jsProps) => make(~name=jsProps##name, ~age=?Js.Nullable.to_opt(jsProps##age), [||])
  );

The last parameter of make is an array, for what it is good for?

Thanks


#2

The array represents the children :baby:


#3

@bifunctor The last parameter is the children array. You may want to modify the children in some way for example by cloning them and passing an extra prop.