In my React JS file, I have a map function that I am using to populate a select dropdown with options.
const options = response.map(k => ({
value: k.id,
label: k.description ? `${k.name} - ${k.description}` : k.name,
}));
I am looking for a way to style the ${k.name}
value, such as making it bold and increasing the font size. How can I achieve this by either adding a div or applying inline styles?
Expected Output :
Thank you in advance