Is it possible to have line breaks within one value of an JSON Object?
I tried with \n with br-tag and with template literals like bla bla ${\n} bla bla bla, but it's not working.
My code looks like this in the Object
export const Data = [
{
id: 1,
item: 'blablabla',
detail:
'bla bla bla. <here I want a line break> bla bla bla'
}]
Thanks for your help
dangerouslySetInnerHTML={{ __html: 'text <br/> text' }}on the element where you want to render the text you can do it with<br/>