This article is designed to clarify some confusion around async/await usage and how it works compared to a regular Promise.

Ah the much loved call back hell. Since JS8 or ECMAScript 2017 (ECMAScript is just a standard set by ECMA organization), using promises became a lot more practical due to these two magic keywords async and await. I won’t go into detail on callbacks as it is its own topic.

The async keyword can be used only with a function declaration. It tells the JavaScript runtime environment (V8, Node.js, or Deno) that it should wrap the function body in a…

React Hooks
React Hooks

Before diving in it is important to know the difference between object oriented programming (OOP) and functional programming (FP). They both have their pros and cons depending on the use case. Typically for building complex systems that have well defined predetermined structure OOP is the way to go as it allows for a more efficient use of resources. However for a single page react application for example with a few components and maybe a few apis functional programming, will probably be quicker and easier to dive right in. …

I want to start by thanking the react team for making functional programming fun again :) Long gone are the days where you need a state management platform to go along with your react app (at least for single page applications). For more complex scenarios (e.g showing notifications for different routes/pages REDUX comes in handy) In this article i would like to walk through a few examples that helped me go a little bit beyond the basics in understanding hooks.

We will focus on these three hooks and how to combine them to build a state management platform in react…

Aldi Zhupani

React enthusiast, AVID learner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store