ReactJs: Lifecycle & State
/20
0
:
0
Submit
Total 20 question (100 marks)
1. To develop and run React code, Node.js is required.
2. JSX is faster because it performs ____________ while compiling code to JavaScript
3. What type of element will be rendered from the following code? function Hello() { return <h1>Hello reactjs</h1>; } ReactDOM.render(<Hello />, document.getElementById('root'));
4. What happens when the following render() method executes? render(){ let langs = ["Ruby","ES6","Scala"] return (<div>
5. When rendering a list using the JavaScript map() method, what is required for each element rendered?
6. React separates the user interface into components. How are components combined to create a user interface?
7. What command is used to start the React local development server?
8. In JSX most of the errors can be caught during _________.
9. What is the children prop?
10. Invoked once, only on the client, after rendering occurs.
11. What is the smallest building block of ReactJS?
12. If you want to import just the Component from the React library, what syntax do you use?
13. How can you optimze performance for a function component that always renders the same way?
14. What tool does React use to compile JSX?
15. React can only render elements in the root document element.
16. React keeps track of what items have changed, been added, or been removed from a list using ________.
17. What is the default local host port that a React development server uses?
18. At the highest level, React components have lifecycle events that fall into.
19. props in react can________.
20. How can we prevent default behavior in React? What method you can call?
Next
Previous