To covert a string of text into HTML there many ways you can do this, this is how I do it in three simple steps:

1. install html-react-parser

$ npm i html-react-parser

2. import html-react-parser

import parse from 'html-react-parser'

 

3. add to jsx code

body: "<h1>BODY Header</h1><p>This is the paragraph of the body.</p>",

 

<Modal.Body>{parse(modalContent.body)}</Modal.Body>