I am making my own Virtual DOM. I have a function that gets the string of HTML and returns the string of JSX. Аfter that I need to convert this string of JSX to object of JSX for comparison.
let htmlStr = '<div><div>Section 1</div><div>Section 2</div><div>Section 3</div></div>';
let jsxStr = convertHTMLtoJSX(oldMarkupStr);