Question: Which class-based component is equivalent to this function component?

  1. A
  2. B
  3. C
  4. D

Answer: The correct answer of the above question is Option C:C