Understanding setState Hook - Coding for Entrepreneurs