I cannot find the source but there was a clear notice in react documentation that says arrow function, class declaration and object literals are the same as far as react is concerned. I feel that there are still certain nuances. Which format should be used in what situation? Thanks.
CompA = ()=> {}
class CompB extends React.Component {}
const CompC= () => {}
(please allow me to read/reply to answers/comment in a few hours. )