<div id="app"></div>
const app = document.querySelector('#app');
const root = ReactDOM.createRoot(app);
const example = <h1> Hello { if(true) { console.log('Ray') } } </h1>; // Error
root.render(example);
View Compiled
This Pen doesn't use any external CSS resources.