In JavaScript, we are not allowed to use variables and we can only define methods. Also if we want to initialise a variable, we should do it either in the constructor or the prototype of the class.But in ReactJs we can initialise state outside constructor.
Is ReactJs classes like class A extends React.Component{}
different from normal javascript classes?