Seriously is there any way to shorten this JS code?
Edward Chu

This shows the most complex scenario for fairness. In many scenarios you’ll simply say onClick={myFunc}.

Same rules apply here as with any JS. Sometimes you need to .bind when you’re concerned with the meaning of this, or you need to close over a value.

Show your support

Clapping shows how much you appreciated Cory House’s story.