JavaScript

Use State React Hook

React Hooks: useState – Part 2

Reading Time: 3 minutes As we can discuss a lot about React Hooks in React Hooks: Introduction – Part 1. In this blog, we are going to discuss the useState hook in detail. As this hook let us use state without writing a class. This hook is the equivalent of this.state/this.setState for functional components. Declaring a state variable useState is a named export from react so to use it, Continue Reading

Postman-Extract value from the JSON object array

Reading Time: 3 minutes Most of us are using postman for automating the Rest API. In automating the requests, we need to pass the data in many requests in different forms. It will be in the datasheet/excel form, database and also sometimes need to extract data from JSON response of any request. Postman lets you write scripts that run before/after you receive a response from the server. The pre-request Continue Reading

Angular Data Binding

Components and Data Binding: Part – 2

Reading Time: 4 minutes As we have discussed about basics of Angular in the previous blog. Now we have an idea about what are components and what is data binding. So, we can conclude that components are the key features in Angular. And, data binding is the communication between the typescript code and the HTML code of a component.  At the beginning of any angular project, Command Line Interface Continue Reading

Angular

Basics of Angular: Part-1

Reading Time: 4 minutes What is Angular? What it does? How we implement it in a project? So, here are some basics of angular to let you learn more about angular. Angular is a Typescript-based open-source front-end web application platform. The Angular Team at Google and a community of individuals and corporations lead it. Angular lets you extend HTML’s syntax to express your apps’ components clearly. The angular resolves Continue Reading

React Hooks: Introduction – Part 1

Reading Time: 3 minutes React hooks were introduced at React Conf October 2018 to introduce state management and side-effects in functional components. They have become a game-changer for a lot of developers. These hooks change the fundamental mindset because of switching from class-based components to functional components with hooks. In this blog post, we will get an overview of these hooks, with the look of how the same logic Continue Reading

HTML, CSS, and JS as a Framework

Reading Time: 7 minutes For beginners, the thought of designing a website from scratch can seem like a really difficult task. Let’s ease it a little bit in this blog. The online market is expanding at a good rate and for most of us, websites form part of our daily life. HTML, CSS, and JS are special web languages that work together as a framework to form the front-end Continue Reading

How to execute Selenium script in JMeter

Reading Time: 2 minutes In this blog, we are going to discuss How to execute Selenium script in JMeter. Basically JMeter was developed to provide open source performance and load testing solution. Initially, JMeter was designed for testing web applications. Later it expands to other test functions. We can also perform functional testing using JMeter. Why it is needed:- In the current scenario, we are using much-advanced technology such Continue Reading

User Authorization using JWT – Part 1

Reading Time: 4 minutes Around all the buzz words flying in the micro-service development area, one of the hottest is JWT (JSON Web Token). We often encounter JWT in already established services or may be asked to authenticate a User using a JWT. So if you’re new to this concept, hang in tight! In this blog, I’ll try to explain what exact use-case  JWT fulfills and when you can Continue Reading

Virtual DOM in React

Reading Time: 4 minutes In the Browser world, you often hear people talking about the Browser DOM and DOM Manipulation and soon. In the React world, you often hear people talking about the Virtual DOM.   What exactly is the Virtual DOM and how is it different from the Browser DOM,  and why do we have a Virtual DOM? So you will get all the answers to these questions after reading this Continue Reading

Monkey patching in NodeJS

Reading Time: 3 minutes Hey guys, I am back with another blog in my series of blogs on mocking in nodeJS, so if you have read my last blog, in which we looked over how we can use sinon for testing in nodeJS to effectively mock and stub behaviours, so in this blog we would look over the concept of monkey patching to make things more testable, so let’s Continue Reading

Spies and Stubs in NodeJS

Reading Time: 3 minutes Hi folks, my last two blogs we discussed about how we can use monkey-patching to test complex code logic which could be difficult to test if it is not used, along with that we also looked over how can stub or mock behaviours of our dependencies using sinon, in this blog we would be exploring more utilities provided by sinon i.e; Spies and Stubs. Spies Continue Reading

Prevent user from losing unsaved data

Reading Time: 3 minutes There are many instances where a user fills some details in the form, edit their details, or secure the form in such a way that if someone navigates away or closes the browser tab, they should be prompted to confirm that they really want to leave the form with unsaved data. Whenever these kind instances occur you will see an alert appear on the top of Continue Reading

ngRx with Redux in Angular

Reading Time: 4 minutes In this blog, we will see the basic pattern of Redux and some benefits and some high-level concepts of redux and then we will discuss the brief about ngRx and its basic implementation. Redux: Redux is a predictable state container for JavaScript apps. It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of Continue Reading