convertNewlineToJSX
A util function that replaces newlines (\n
) with <br />
.
Example
<Dialog.Title>{convertNewlineToJSX('There was a problem trying to sign in.\nplease try again.')}</Dialog.Title>
A util function that replaces newlines (\n
) with <br />
.
<Dialog.Title>{convertNewlineToJSX('There was a problem trying to sign in.\nplease try again.')}</Dialog.Title>