Error Message : TypeError: Cannot read property 'setState' of undefined

You need to bind this in your methods. By convention, this is done in the constructor.

Examples can be found here.

Leave a Comment