I have some JSX format strings which are saved into the database. Now I want to convert them to the JSX again. For example:
let a = "<TestComponent />"; // String is loaded from database
ReactDOM.render(
a,
document.getElementById('root')
);
How could it be possible?