I have a React component which needs to run a check in a `setTimeout()` call. The following is my method call

```
componentDidUpdate: function () {
    // Despite console warnings, React does *not* do this.
    var boundCheck = this.checkYourself.bind(this);
    if (!this.timeoutId) {
        this.timeoutId = window.setTimeout(function () {
            boundCheck();
        }, UPDATE_CHECK_INTERVAL);
    }
},

```

This will produce the following warning on the console:

> 
> bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call.
> 
> 
> 

However, if I change the method to the following:

```
componentDidUpdate: function () {
    if (!this.timeoutId) {
        this.timeoutId = window.setTimeout(function () {
            this.checkYourself();
        }, UPDATE_CHECK_INTERVAL);
    }
},

```

I get an exception because `this` refers to `window`. Is there a way to do this which will make React happy?