How can I get line breaks to work when using template literals in a prop?
const TypographyGroup = ({label, content}) => (
<div>
<FadedLabel type='subheading'>
{label}
</FadedLabel>
<Typography type='body1'>
{content}
</Typography>
</div>
)
<TypographyGroup
label='Address'
content={`${profile.company.billingAddress.street_1}
${profile.company.billingAddress.street_2}
${profile.company.billingAddress.city}, ${profile.company.billingAddress.state} ${profile.company.billingAddress.zip}`}
/>
Here I'm hoping to have a line break after street_1
and street_2
, but am getting no line breaks at all.
` in the render method of `