ReactJs in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. An altered component may be uniquely identified with the help of ref.
2. What is the default local host port that a React development server uses?
3. Invoked once, only on the client, after rendering occurs.
4. The state can be initialized when code is loaded or the state can be set on event changes.
5. What type of element will be rendered from the following code? function Hello() { return <h1>Hello reactjs</h1>; } ReactDOM.render(<Hello />, document.getElementById('root'));
6. React is mainly for building _____________.
7. What is the children prop?
8. Which input tag attribute should be set in a React reusable text input component, and is passed for
9. How do you access a function fetch() from a h1 element in JSX?
10. Which method in a React Component should you override to stop the component from updating?
11. React considers everything as _______.
12. What is the correct syntax to import a Component from React?
13. What is ReactJS?
14. What command is used to start the React local development server?
15. Components cannot refer to other components in their output.
16. Why should you avoid copying the values of props into a component's state?
17. Which component lifecycle method, prepopulate a form in a React form component?
18. Who is developed React.js?
19. How do you fix the syntax error that results from running this code? const person =(firstName, lastName) => { first:
20. If our elements are dynamic, react can keep track of the changes using keys.
Next
Previous