Removed unnecessary flattening, since react supports multiple children