Question: Which answer best describes a function component?
- A function component is the same as a class component.
- A function component accepts a single props object and returns a React element.
- A function component is the only way to create a component.
- A function component is required to create a React component.
Answer: The correct answer of the above question is Option B:A function component accepts a single props object and returns a React element.