Question: Which answer best describes a function component?

  1. A function component is the same as a class component.
  2. A function component accepts a single props object and returns a React element.
  3. A function component is the only way to create a component.
  4. 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.