Podcast
Questions and Answers
What is the purpose of the call to ReactDOM.render() in a React application?
What is the purpose of the call to ReactDOM.render() in a React application?
- To create a single element
- To place the React application on the page (correct)
- To render the DOM
- To define the React application
What is the first argument to ReactDOM.render() in a React application?
What is the first argument to ReactDOM.render() in a React application?
- The DOM
- The element to render (correct)
- The React application
- The Babel script body
What would happen if the call to ReactDOM.render() is not included in a React application?
What would happen if the call to ReactDOM.render() is not included in a React application?
- The DOM would not be rendered (correct)
- The React application would not be defined
- The Babel script body would not be executed
- The <h1>Hello world</h1> element would not be created
Flashcards are hidden until you start studying