Open in app
Home
Notifications
Lists
Stories

Write
Ankit Saxena
Ankit Saxena

Home
About

Published in JavaScript in Plain English

·Pinned

Implement Debouncing in React in 3 Different Ways

Debouncing is used for optimizing the performance of a web app. It is done by limiting the rate of execution of a particular function (also known as rate limiting). We will learn about debouncing by implementing it on an input box with an onChange event. When we’ll type something inside…

Java Script

3 min read

Implement Debouncing in React in 3 Different Ways
Implement Debouncing in React in 3 Different Ways

Published in JavaScript in Plain English

·May 28

Understanding Web Workers in JavaScript With Real-World Example

What are web workers in JavaScript? Explained with a real-world example. — JavaScript is a single-threaded programming language. That means everything happens on that single main thread. It can’t do multiple things at the same time. Web workers were introduced to solve this issue. Web workers give us the possibility to write multi-threaded JavaScript, which does…

Web Workers In Javascript

4 min read

Understanding Web Workers in JavaScript With Real-World Example
Understanding Web Workers in JavaScript With Real-World Example

Published in JavaScript in Plain English

·Apr 9

How to write polyfills for the call(), apply(), and bind() methods in JavaScript

The call(), apply() and bind() methods are used for function borrowing in JavaScript. It means that by using them, we can use the methods of one object on a different object without having to make a copy of that method and maintain it in two separate places. Let’s say we…

Java Script

3 min read

How to write polyfills for the call(), apply(), and bind() methods in JavaScript
How to write polyfills for the call(), apply(), and bind() methods in JavaScript

Published in JavaScript in Plain English

·Mar 5

DangerouslySetInnerHTML in React JS Explained

dangerouslySetInnerHTML is an attribute under DOM elements in React. According to the official documentation, dangerouslySetInnerHTML is React’s replacement for using innerHTML in the browser DOM to set HTML programmatically or from an external source. Syntax and Need to use dangerouslySetInnerHTML In simple vanilla JS to insert the HTML into the web page we use innerHTML property…

React

3 min read

DangerouslySetInnerHTML in React JS Explained
DangerouslySetInnerHTML in React JS Explained

Published in JavaScript in Plain English

·Jan 27

MutationObserver in JavaScript Explained

What is MutationObserver? MutationObserver is a Web API provided by modern browsers for detecting changes in the DOM. Using MutationObserver, when something in the DOM changes, we can invoke a callback function to react to those changes. Why would we even need to do that? There are quite a few cases in which…

Java Script

3 min read

MutationObserver in JavaScript Explained
MutationObserver in JavaScript Explained

Published in JavaScript in Plain English

·Jan 1

Get Started with React Testing Library and Jest

An introduction to Jest and React Testing Library for beginners. — React testing library has become the most popular option to write test cases for React applications. These test cases resemble how a user would use your application. If you are using the latest version of the create-react-app tool then you already have Jest and Testing Library already installed for you.

Java Script

5 min read

Get Started with React Testing Library and Jest
Get Started with React Testing Library and Jest

Published in JavaScript in Plain English

·Sep 25, 2021

Adding Skeleton Loading Animation With CSS

The term Skeleton Loading Animation may seems new but it is something that you have seen on almost every popular platform (eg. Facebook, Youtube, LinkedIn etc). When the site content is taking time to load due to slower Network, we used to see a loading icon/gif which indicates that the…

Programming

4 min read

Adding Skeleton Loading Animation With CSS
Adding Skeleton Loading Animation With CSS

Published in JavaScript in Plain English

·Sep 24, 2021

How to Create Skeleton Loading Screens in React

The term Skeleton Loading Screens may seem new but it is something that you have seen on almost every popular platform (eg. Facebook, YouTube, LinkedIn, etc). These are animated placeholders for the information that is still loading. It mimics the structure and look of the entire view. When the site…

Java Script

5 min read

How to Create Skeleton Loading Screens in React
How to Create Skeleton Loading Screens in React
Ankit Saxena

Ankit Saxena

Software Engineer (Frontend)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable