Read this short, to the point article as it guides you through the most fundamental and essential concepts of React Js

Image for post
Image for post

Starting with the background details

React is a JavaScript library that aims to simplify the development of visual interfaces. Developed at Facebook and released to the world in 2013, it drives some of the most widely used code in the world, powering many software companies.

A Big Misconception

React is a JavaScript “library”. It is not exactly a “framework”. It is not a complete solution and you will often need to use more libraries with React to form any solution. React does not assume anything about the other parts in any solution.

Frameworks serve a great purpose, especially for young teams and startups. When working with a framework, many smart design decisions are already made for you, which gives you a clear path to focus on writing good application-level logic. However, frameworks come with some disadvantages. For experienced developers working on large code bases, these disadvantages are sometimes a deal breaker. …

import localStorage from ‘JavaScript’ ;

Image for post
Image for post

Before starting this article, I want to take a moment to thank you guys for so much loving and support to the first part of this article, I got an amazing response on that and many people texted me saying it was amazing and they are eagerly waiting for the second part.

So yes, your wait is over, and lets get started!

Let’s recapitulate what all we have covered —

So last weekend, I released the first part of the article, “A Complete Guide to LocalStorage in JavaScript: Part-1” in which I introduced you with the theoretical details of the JavaScript localStorage, which were as follows —

  • What is localStorage? …

In this short, to the point article, I’ll guide you through the complete theoretical explanation and practical implementation of localStorage in JavaScript.

Image for post
Image for post

This article is divided into of two parts:

  • Part-1: Theoretical Explanation
  • Part-2: Practical Implementation

A Theoretical Explanation for localStorage

What is a localStorage?

localStorage is a type of web storage that allows JavaScript sites and apps to store and access data right in the browser with no expiration date. This means the data stored in the browser will persist even after the browser window has been closed. The stored data is saved across browser sessions.

Data in a localStorage object created in a "private browsing" or "incognito" session is cleared when the last "private" tab is closed.

Methods and Properties provided by Storage Object

  • setItem(key, value) – store key/value pair.
  • getItem(key) – get the value by key. …


Abhishek Srivastava

@Google DSC LEAD | Web developer | Technical Writer | Competitive coder| Open Source Contributor | Mentor @StudentCode-in | Learner | TheProgrammedEnthusiast |

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