So I'm trying to create a accordion for my web app and it have accordion from bootstrap in it.
I wanted my app to be able to create new line depending on the product description entered from the database so if the admin set the desc to enter new line, the accordion should also enter and show newline. I tried using pre tag and also css white-space: pre-wrap but nothing work with it. Can anyone help me to fix this ?
my code:
<Container fluid>
<Row>
<Col lg={12} xs={12} className=" fontRegular">
<Accordion defaultActiveKey="0" >
<Accordion.Item eventKey="0">
<Accordion.Header className="fontMedium">Deskripsi Produk</Accordion.Header>
<Accordion.Body className="fontRegular">
<pre >
{product.description}
hello
hi
</pre>
</Accordion.Body>
</Accordion.Item>
</Accordion>
</Col>
</Row>
</Container>

