React onClick Explained: Function calls vs Function Reference

When I first started working with React, one of the things that confused me was handling the onClick event. I often found myself mixing up…