How useEffect Works

In the newest version of React, you do not need to create a class component to maintain the state. There are a lot of articles and talks on why it is beneficial to get rid of the class component and use functional components. This discussion is beyond the scope of this post hence I would

Read More


React Components

Components are small, isolated, and reusable parts of UI. Technically, a component is a JavaScript function which takes an input [called props] and returns a React element (JSX). For example: We can also extend React’s Component class to create a class based components, which has some additional features when compared to a function based component.

Read More


Virtual DOM

A Virtual DOM (VDOM) is a concept of displaying UI elements on the webpage without coupling them with the Real DOM (DOM). It is a lightweight JavaScript object, a tree structure similar to the DOM. Using libraries like ReactDOM, we align and display the VDOM on the page; which mounts the entire VDOM on a

Read More