Stateless fonctional comp VS stateless comp


in this exercice:
Review Using Props with Stateless Functional Components


It’s asked to define a Camper component. But which kind of component, “stateless fonctional component” or “stateless component”.
So I went to see in the solution:

const Camper = props => <p>{}</p>;

For me this is a “stateless fonctional component”. Am I right ?
And if I’m right, the correct statement should be “Define the Camper fonctional component”.


No, you can also define class component. So the statement “define component” is correct: you can choose between functional and class component.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.