In a JS class what's the difference between:
class MyClass extends components {
constructor(props) {
super(props);
this.state = {toto:"toto"}
}
}
and
class MyClass extends components {
state = {toto:"toto"}
}
[Edit] It's the same: Thanks for your answers !