Closed djonathas closed 3 years ago
Yes, the variable will be a string in the result.
In your case, you could separate them into two parts.
const items = ['Item1', 'Item2'];
return (
<div>
{intl.get('key').d('Test List ')}
{items.map(item=>(<><br />{item}</>))}
</div>
)
Yes, I did this for now. But I thought it was good have this feature to variable too
I realized today it is not possible to put HTML tags inside a variable, like that:
the result is:
Test List <br />Item 1<br />Item 2