Saransh Kataria

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,...

React Hooks and Local Storage: Let’s build a ToDo app

React Hooks and Local Storage: Let’s build a ToDo app

  • August 25, 2020

React hooks have been around for quite some time. They have been widely adopted by the React community since then and have started becoming the defacto for newer React applications. A react hook allows developers to hook into React features. React hooks allow building components by using functions instead of...

Using async/await in ExpressJs

Using async/await in ExpressJs

  • August 6, 2020

If you have not been living under a rock for the past few years, you probably have heard of async/await. It has been one of the interesting additions to EcmaScript. It makes control flow easier to understand and read and also allows to write concise, maintainable code. If you need...

GraphQL Basics: Types, Queries, Mutations, and Schema

GraphQL Basics: Types, Queries, Mutations, and Schema

  • July 15, 2020

Once you get a grasp of what GraphQL is, and why it is important, you also realize that it is a different design process. And before diving into the implementation, it is important that we understand the GraphQL basics, the various terminologies that come with it. If you are just...

Why GraphQL?

Why GraphQL?

  • June 2, 2020

Developing APIs for the web has never been an easy task for developers. REST has been the defacto standard for designing web APIs for the last decade. Considering REST’s wild popularity, the first question that pops into anyone’s head when they start reading about GraphQL is: Why GraphQL? Why do...

How to setup GatsbyJS starter with TypeScript and ESLint

How to setup GatsbyJS starter with TypeScript and ESLint

  • May 10, 2020

Gatsby has become fairly popular in the last couple of years and it has starting becoming the go to static site generator for a lot of projects. The smooth developer experience and the warm community has enriched the adoption even more. TypeScript has had a similar growth curve and has...