Réponse

No. You can write it as a JavaScript function

Colonne
Explication

If you have a component class with nothing but a render function, then you can rewrite that component class in a very different way. Instead of using React.Component, you can write it as a JavaScript function!

Question

If you have a component class with nothing but a render function, is it necessary to use React.Component ?

Thématique