What is react direct this.xxx instead of this.state.xxx?

I usually use it when initializing

constructor(props) {
  super(props);
  // ...
  this.stream = null;
  this.video = null;
  // ...
}

what is the difference between the above two initializations?

when this.xxx appears in my impression, this xxx should be a method ( < Component onClick= {this.doSth} / > )

his this.stream = null; can I use it directly? For example,

modify this.stream=100 or

value if (this.stream = 100) / /. like this?


can you understand the first one? if you can understand it, just follow the first one.

constructor(props) {
  super(props);
  // ...
  this.stream = null;
  this.video = null;
  // ...
}
Menu