React with ES7: Uncaught TypeError: Cannot read property ‘state’ of undefined
Make sure you’re calling super() as the first thing in your constructor. You should set this for setAuthorState method Another alternative based on arrow function:
Make sure you’re calling super() as the first thing in your constructor. You should set this for setAuthorState method Another alternative based on arrow function: