I have this JS/React code for (var arch of archs) { if (platform.length > 0) pla...

@mcc@mastodon.social

I have this JS/React code

for (var arch of archs) {
if (platform.length > 0) platform.push(", ")
platform.push(<span class="plat">{arch}</span>)
}

Later I put {platform} inside some JSX.

The space gets eaten.

I make it more elaborate.

for (var arch of archs) {
if (platform.length > 0) platform.push(<span>,{" "}</span>)
platform.push(<span class="plat">{arch}</span>)
}

The space still gets eaten. What do I do to actually put a fucking space after this comma EDIT: answer is 'break flexbox'