This line has a check that throws an error if any child within children is not of StepActions type OR the child is not of StepContent type.
It would make more sense to me if this check only threw an error if any of the children were not of StepActions type AND that that child was also not of StepContent type. Did you mean to write this instead?
if ((child.type !== StepActions) && (child.type !== StepContent)) {
This line has a check that throws an error if any child within children is not of
StepActions
type OR the child is not ofStepContent
type.It would make more sense to me if this check only threw an error if any of the children were not of
StepActions
type AND that that child was also not ofStepContent
type. Did you mean to write this instead?