const paymentOptionsRadio = [
{
key: 'fullamount',
value: `Full amount - ${getCurrency(bookingData?.currencyIsoCode)} ${
bookingData?.expectedPayments[0].amount
}`,
},
];
<ListRadioButtons
name='paymentType'
value={selectedPaymentOptionType}
values={paymentOptionsRadio}
onChange={handlePaymentChange}
defaultValue={selectedPaymentOptionType}
/>
How to bold a string within a JS object? I am using react.
My attempt:
const paymentOptionsRadio = [
{
key: 'fullamount',
value: `Full amount - ${(
<b>{getCurrency(bookingData?.currencyIsoCode)}</b>
)} ${(<b>{bookingData?.expectedPayments[0].amount}</b>)}`,
},
];
Why mark this question down? I have provided examples, my attempt, screenshot...