Render React on the Server with renderToString

Tell us what’s happening:

Your code so far

class App extends React.Component {
  constructor(props) {
  render() {
    return <div/>

// change code below this line
ReactDomServer.renderToString(<App />);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:

1 Like


1 Like

Thanks it was a silly mistake i see

1 Like

// change code below this line

const reactHtml = ReactDOMServer.renderToString(<App />);