GoConqr has a new look! Let us know what you think.

Module 7 of 28 · Media

Rendering component to DOM

Kostas Diakogiannis

Rendering component to DOM

Rendering component to DOM

You can mount whatever a component's render function returns, to the DOM by using the ReactDOM.render method. Specify the component or some JSX as first argument, and the entry point on your HTML, in our case a div with id attribute of 'app'.

Then, whatever the component's render function returns, will replace the element with the given id.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?