I have an a-tag
looking like this
<a href={ item.htmlReportUrl } target="_blank" rel="noopener noreferrer">
{item.htmlReportText}</a>
which gets it's values for the href
and the linktext
from this
row.htmlReportUrl = res.db[key].htmlReport
row.htmlReportText = 'HTML Report'
My plan was now to in addtion pass
target="_blank" rel="noopener noreferrer"
in the same way. These attributes needs to be set just sometimes. But doing something like this
<a href={ item.finalUrl } { item.htmlReportAttributes }
isn't working.
Parsing error: Unexpected token, expected "..."
I guess it's added to the href? How can I pass multiple html attributes at once?