Render React on the Server with renderToString

Render React on the Server with renderToString
0

#1

Tell us what’s happening:

Your code so far



class App extends React.Component {
  constructor(props) {
    super(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:
https://learn.freecodecamp.org/front-end-libraries/react/render-react-on-the-server-with-rendertostring


#2

DOM
tuentykarate!


#3

Thanks it was a silly mistake i see


#4

// change code below this line

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