ReactJs: React Hooks
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Which of the following needs to be updated to achieve dynamic UI updates?
2. Although React Hooks generally replace class components, there are no plans to remove classes from React.
3. Props are __________ into other components
4. ref is used to refer a element / component returned by _______________.
5. Why should you avoid copying the values of props into a component's state?
6. A copy of the 'real' DOM that is kept in memory is called what?
7. How do you handle passing through the component tree without having to pass props down manually at every
8. Which of the following is NOT a rule for React Hooks?
9. What happens when you call setState() inside render() method?
10. The state can be initialized when code is loaded or the state can be set on event changes.
11. How can you access the state of a component from inside of a member function?
12. In React state can be accessed using ________.
13. Which prop takes a function to be called when the text is submitted for TextInput component, in React?
14. Which prop type in a React form component, will validate a value for an attribute is passed and
15. What will happen if you render an input element with disabled = {false}?
16. We can go for keys when there is a possibility that our user could change the data.
17. Keys are given to a list of elements in react. These keys should be:
18. An altered component may be uniquely identified with the help of ref.
19. What is a common use case for ref?
20. React merges the object you provide into the current state using __________
Next
Previous