Image for post
Image for post

React is a very popular JavaScript library. Today, many startups choose React as their tool for building fast front-end side applications for their projects. It has over 5.5 million weekly downloads, but not a lot of developers know how React actually works under the hood.

Going through the different documentations may be frustrating, so in this article, I’ll try to tackle that task and explain the inner workings of React as well as I can. There’s a lot to cover so let’s dig in.


Image for post
Image for post

There’s been a big hype about TypeScript and how it fixes many issues that JS has. So I just recently decided to try it and see for myself. Like many of you in my situation, I struggled for some time, but nevertheless, I found its strict rules very useful and handy. You might struggle at first, but you get the benefits afterward.

I am working on a small private project, trying to build a sorting visualizer using different algorithms. I stopped in midway because I wanted to integrate TypeScript into the build. I am a big fan of styled-components, so that’s a double win for me. …


Image for post
Image for post

Closures are often a mystery to many people. Many of them don’t even know it exists, many of them don’t understand it fully and many of them use it without even knowing about it. I was among those as well. But coding in Javascript without understanding how closures work is like talking to a person in English and not knowing grammar. You will probably be able to get the point across but not very elegantly so say it softly.

So what exactly is a closure?

A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function’s scope from an inner function. In JavaScript, closures are created every time a function is created, at function creation time. Closure means that an inner function always has access to the parameters of its outer function, even after the outer function has returned. The outer function can very well be the global scope. …

Vakhtang Nodadze

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