[
{
name: "test",
tests: ["one", "two"]
}
];
renderTest = test => {
return test.map((el, index) => {
return test.length > 1 ? (
<span key={index}>{el}, {" "} </span>
) : (
<span key={index}>{el}</span>
);
});
};
one , two ,