score:4

Accepted answer
import React from "react";
import ReactDOM from "react-dom";

import Highlight from "react-highlight.js";
function App() {
  return (
    <Highlight language="javascript">
      {`const rootElement = document.getElementById("root"); 
ReactDOM.render(<App />, rootElement);`}
    </Highlight>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Related Query

More Query from same tag