JavaScript

TypeScript: Type Alias – to avoid duplicate type definitions

To avoid duplication or repeated type definitions, we have the type alias in TypeScript. We can do this easily using the type keyword in... Read more »

TypeScript: Union Types – Multiple types for a variable

Union Type definition in TypeScript allows us to have multiple types for a variable. For example, we can have the type of string and... Read more »

Type Inference inTypeScript – Defining Inferred type

TypeScript tries to infer as many types as possible by default in certain cases. It tries to know which types are used without us... Read more »

TypeScript Type definition, examples for Beginners – React, Node

Lets look into basic types in typescript and its common usages with examples. We will be checking out the primitive type definitions in typescript... Read more »

React JS : Save Data in Local Storage, Get Data

How to save data to browser storage in our React JS App. If we are storing the data to the local storage of the... Read more »

Terminal Command to check Current React Version

Check the current version of React installed in the system using the terminal command. npm command that can be used in VS code terminal... Read more »

How to easily update node version in Windows

Looking to upgrade the node version installed on your Windows system? The node update can be easily done by downloading and installing the latest... Read more »

React useState Previous value, Spread Operator, Complex States, Map

React App sample code that implements useState accessing previous value. Using spread operator in raeact js. Dealing with complex states, mapping state data to... Read more »

Destructuring Array and Object in Javascript

Here is the sample code which destructures an array and object. Reference code: For arrays we can give any name we want, but while... Read more »

React Js API Data Fetch Using Axios – Sample Code

API data fetching in React JS app can be easily implemented with the help of Axios package. Here is a sample react app code... Read more »