React Components and Props
Description: React Components and Props Quiz | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: react components props |
What is the primary purpose of using components in React?
What are props in React?
How do you define props in a React component?
What is the difference between props
and state
in React?
How do you access props within a React component?
Which lifecycle method is called when a React component is first mounted?
What is the purpose of the shouldComponentUpdate()
lifecycle method?
Which React hook is used to manage state within a functional component?
What is the purpose of the useEffect()
hook in React?
What is the difference between a controlled component and an uncontrolled component in React?
How do you pass data from a child component to a parent component in React?
What is the purpose of the context
API in React?
Which React hook is used to access the context API?
What is the purpose of the forwardRef()
API in React?
What is the difference between a static and a dynamic prop in React?