in theme/src/components/live-code.js [17:27]
function htmlToJsx(html) {
try {
const reactElement = htmlReactParser(removeNewlines(html))
// The output of htmlReactParser could be a single React element
// or an array of React elements. reactElementToJsxString does not accept arrays
// so we have to wrap the output in React fragment.
return reactElementToJsxString(<>{reactElement}</>)
} catch (error) {
return wrapWithFragment(html)
}
}