React defining state without a constructor [duplicate] React defining state without a constructor [duplicate] reactjs reactjs

React defining state without a constructor [duplicate]


Its exactly the same thing. Take a look at the javascript that babel transpiles the code into. There is no difference.