I have some data stored in an array:
const currencies =['USD','EUR','AUD','CNY','AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS',
'AUD', 'AWG','AZN', 'BAM', 'BBD', 'BDT', 'BGN', ' BHD', 'BIF', 'BMD'
,'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYN' ]
const firstCurrencies = currencies.slice(0,4)
My React component relevant code here:
<div className="flex flex-col">
<h3>Select a currency</h3>
<div className="flex flex-row z-40">
{firstCurrencies.map((firstCurrency,index) =>(
<div className="">
<div key={index} className="">
<span><Link to="#">{firstCurrency}</Link></span>
</div>
<hr></hr>
</div>
))}
</div>
</div>
What is the best way to add space to after the item.
At the moment its displaying like this:
The idea is to have the currencies separated by a space.
I have tried firstCurrencies.join(',') at the top but giving me an error.
Any tips?

px-1to the firstdivwithin the map's handler-><div class="px-1">or maybepr-1to avoid left padding.