import React from 'react'
import {render} from 'react-dom'
import fromHtml from '@klarna/ui/fromHtml'
const html = `<div>
<h1>Hello</h1>
<p>Lorem ipsum dolor sit amet</p>
</div>`
render(
<main>
{fromHtml(html)}
</main>,
document.getElementById('root')
)
The main benefit is for copy that comes from translations and such that needs to be used do that <strong> becomes <Strong> and so on.
For example:
The main benefit is for copy that comes from translations and such that needs to be used do that
<strong>
becomes<Strong>
and so on.