ReactJS Fundamentals

Test your understanding of components,props,and state management.

1. What is JSX in React?
2. Which of the following are valid React hooks (select all that apply)?
3. React uses a Virtual DOM to improve performance.
4. What does the acronym 'JSX' stand for?
5. Which React component type is recommended for most use cases in modern React?
6. Which of the following are true about React props? (select all that apply)
7. In React, 'setState' updates the state immediately.
8. What hook is used to add state to functional components? (full name)
9. What is the purpose of the 'key' prop in React lists?
10. Which lifecycle methods are available in class components? (select all that apply)
11. React is a framework, not a library.
12. What does 'DOM' stand for in the context of web development?
13. Which of the following is a valid way to render a React component?
14. Which of the following are features of React? (select all that apply)
15. Functional components can use state with the help of hooks.
16. What is the name of the component that allows returning multiple elements without a wrapper div?
17. What is the difference between state and props in React?
18. Which hooks can be used to perform side effects in functional components? (select all that apply)
19. JSX allows embedding any JavaScript expression inside curly braces {}.
20. What is the term for a component that accepts 'children' as a prop to wrap other elements?
Answered 0 of 0 — 0 correct