Frage im Vorstellungsgespräch bei CDK Global

When would you use a function versus a class component?

Antwort im Vorstellungsgespräch

Anonym

15. März 2019

Class would be used if you need access to state or life cycle methods. I also brought up hooks here and how classes may no longer be required at all in time.