September 2020

Overcoming Procrastination and The Akrasia Effect

Overcoming Procrastination and The Akrasia Effect

  • September 22, 2020

We all know what we should be doing right now. But we don’t want to! That is procrastination in a nutshell. Everything will be fine. I’ll finish it tomorrow. I still have plenty of time. These are famous lines used by every procrastinator. And even though we do end up...

Learning context API and the useContext React hook

Learning context API and the useContext React hook

  • September 15, 2020

In this react hooks series, we have already explored the react hooks useState, useEffect, and useReducer. The next react hook we will look into is the useContext hook. As we saw while building our sample application, we had to lift the state up to our root component in order to...

Understanding the useReducer hook in React

Understanding the useReducer hook in React

  • September 1, 2020

Building upon our React hooks introduction from our previous post on understanding React hooks (useState and useEffect), we will look at the useReducer hook in this post. useReducer hook can be an alternative to useState (in fact, useState uses useReducer internally). Before getting into how to use the useReducer hook,...