
I don't understand why state returns undefined My code is this:
class s extends React.Component {
constructor(props) {
super(props);
this.state = {
name:null,
uri:null,
fbid:null,
};
}
componentDidMount() {
setInterval(function(){..
if(this.state.fbid!=null){..
..),1000}
this.state.fbid => is undefined
this.stateand using!==instead off!=? And is itundefinedin thedidMountor? Please clarify a little - jovi De Croock