I have a form that appears when a button is pressed, the heading of the form will be different for each item in a list, I can remove these items. I would like the name of the item in the form heading to be bold but I am struggling to implement this correctly
my form looks like
render(): React.ReactNode {
return (
<FormGroup
fieldId='example-form
helperText={`do you want to delete <b>${this.props.item.name}</b>?`
>
</FormGroup>
)
}
this currently prints out the <b> tags. I have tried assigning this.props.item.name to a variable as a string and using bold() on that but it didn't work. Any advice would be appreciated.