Memoization is a new concept in ReactJS through which we can store a heavy functional component in memory. Then reuse that component again calling it from cache.

Émile Perron @emilep

The default behavior of a component declared using React.memo is that it renders only if the props have changed. It does a shallow comparison of the props to check that but there is an option to override that as well.


What is React ?

React is a JavaScript library for building user interfaces. It is the view layer for web applications.

React is a component-based library which is used to develop interactive UI’s (User Interfaces). It is currently one of the most popular JavaScript front-end libraries which has a strong foundation and a large community supporting it.

NOTE: ReactJS is only a frontend library and not the whole framework, which deals with the View component of MVC (Model — View — Controller).

What is Webpack ?

Webpack is a tool that lets you compile JavaScript modules, also known as module bundler.

Given a large number of files, it…


“In JavaScript, array is a single variable that is used to store different elements. It is often used when we want to store list of elements and access them by a single variable. Unlike most languages where array is a reference to the multiple variable, in JavaScript array is a single variable that stores multiple elements.”

How to reverse an array in javascript ?

The reverse() method reverses the order of the elements in an array.

Raj Singh

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