react

Girl standing on wooden arched bridge in a park, with green trees in the background.

Managing React State: Why calling state at the right time makes for a wonderful walk in the park

You and your best friend made an appointment to meet for a walk in the park, and then you rescheduled to a new date. The next day, you checked your calendar, biked to your rendezvous… But where is she? Didn’t you guys agree to meet at this time? You stand there puzzled, while your friend …

Managing React State: Why calling state at the right time makes for a wonderful walk in the park Read More »

React Lifecycle: Why componentDidMount() is great for a smooth API call

When you are buying groceries to make dinner, you can’t start preparing the ingredients – chopping the onions, washing the radishes – until you’ve paid for the groceries and driven home, can you? This wouldn’t make sense. Similarly, in React we can’t make modifications to a component until it has been mounted. This is where …

React Lifecycle: Why componentDidMount() is great for a smooth API call Read More »