Forem

saransh kataria profile picture

saransh kataria

A curious full stack developer who loves challenges and getting things done.

Work

Senior Software Developer

Six Year Club
Five Year Club
2 Week Community Wellness Streak
1 Week Community Wellness Streak
Writing Debut
Four Year Club
Three Year Club
Two Year Club
8 Week Writing Streak
Top 7
4 Week Writing Streak
One Year Club
Copy/Pasting output from the terminal
Cover image for Copy/Pasting output from the terminal

Copy/Pasting output from the terminal

14
Comments
2 min read

Want to connect with saransh kataria?

Create an account to connect with saransh kataria. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
How To Get The Hash of A File In Node.js
Cover image for How To Get The Hash of A File In Node.js

How To Get The Hash of A File In Node.js

15
Comments
1 min read
Native Popover API in HTML
Cover image for Native Popover API in HTML

Native Popover API in HTML

6
Comments 2
2 min read
Node.js 20.6 adds built-in support for .env files
Cover image for Node.js 20.6 adds built-in support for .env files

Node.js 20.6 adds built-in support for .env files

8
Comments 8
2 min read
Object destructuring in TypeScript
Cover image for Object destructuring in TypeScript

Object destructuring in TypeScript

7
Comments 2
1 min read
Improve git clone performance in a CI pipeline
Cover image for Improve git clone performance in a CI pipeline

Improve git clone performance in a CI pipeline

Comments
2 min read
Fix: Hydration failed because the initial UI does not match what was rendered on the server
Cover image for Fix: Hydration failed because the initial UI does not match what was rendered on the server

Fix: Hydration failed because the initial UI does not match what was rendered on the server

2
Comments
3 min read
How to Convert a React Component to an Image
Cover image for How to Convert a React Component to an Image

How to Convert a React Component to an Image

43
Comments 6
2 min read
How to Specify a Node Version in Repl.it
Cover image for How to Specify a Node Version in Repl.it

How to Specify a Node Version in Repl.it

Comments
2 min read
Access the Clipboard in JavaScript
Cover image for Access the Clipboard in JavaScript

Access the Clipboard in JavaScript

1
Comments
1 min read
Using counters in CSS to number elements automatically
Cover image for Using counters in CSS to number elements automatically

Using counters in CSS to number elements automatically

3
Comments 2
2 min read
How to Remove a Property from a JavaScript Object
Cover image for How to Remove a Property from a JavaScript Object

How to Remove a Property from a JavaScript Object

5
Comments
2 min read
Script to change Zoom virtual background every day
Cover image for Script to change Zoom virtual background every day

Script to change Zoom virtual background every day

5
Comments
3 min read
Optimize JavaScript Loading with ‘defer’ and ‘async’ Attributes
Cover image for Optimize JavaScript Loading with ‘defer’ and ‘async’ Attributes

Optimize JavaScript Loading with ‘defer’ and ‘async’ Attributes

3
Comments
2 min read
An Introduction to Web NFC
Cover image for An Introduction to Web NFC

An Introduction to Web NFC

13
Comments
3 min read
Progressive JPEG: What They Are and How They Help Improve Web Performance
Cover image for Progressive JPEG: What They Are and How They Help Improve Web Performance

Progressive JPEG: What They Are and How They Help Improve Web Performance

17
Comments
2 min read
The Pomodoro Technique: Productivity hacks
Cover image for The Pomodoro Technique: Productivity hacks

The Pomodoro Technique: Productivity hacks

27
Comments 13
3 min read
React Fragments: What and Why
Cover image for React Fragments: What and Why

React Fragments: What and Why

6
Comments
2 min read
Secure Web Applications Using Sub Resource Integrity
Cover image for Secure Web Applications Using Sub Resource Integrity

Secure Web Applications Using Sub Resource Integrity

4
Comments
2 min read
How to Measure JavaScript Execution Time
Cover image for How to Measure JavaScript Execution Time

How to Measure JavaScript Execution Time

53
Comments
2 min read
The Beginner Syndrome
Cover image for The Beginner Syndrome

The Beginner Syndrome

2
Comments
3 min read
What Are Numeric Separators in JavaScript?
Cover image for What Are Numeric Separators in JavaScript?

What Are Numeric Separators in JavaScript?

4
Comments
1 min read
Apply timeout to JavaScript Promises
Cover image for Apply timeout to JavaScript Promises

Apply timeout to JavaScript Promises

7
Comments
2 min read
How to Enforce Coding Standards Using Husky Pre-Commit Hooks
Cover image for How to Enforce Coding Standards Using Husky Pre-Commit Hooks

How to Enforce Coding Standards Using Husky Pre-Commit Hooks

7
Comments
2 min read
Why does React State Need a New Object/Array?
Cover image for Why does React State Need a New Object/Array?

Why does React State Need a New Object/Array?

7
Comments
2 min read
How to Use Utility Types for Transforming TypeScript Types
Cover image for How to Use Utility Types for Transforming TypeScript Types

How to Use Utility Types for Transforming TypeScript Types

5
Comments 1
4 min read
TypeScript: The Difference Between Interface and Type
Cover image for TypeScript: The Difference Between Interface and Type

TypeScript: The Difference Between Interface and Type

31
Comments 4
3 min read
Writing better conditional expressions in JavaScript
Cover image for Writing better conditional expressions in JavaScript

Writing better conditional expressions in JavaScript

61
Comments 6
4 min read
Parsing and Validating Data in Python using Pydantic
Cover image for Parsing and Validating Data in Python using Pydantic

Parsing and Validating Data in Python using Pydantic

5
Comments
5 min read
Using the optional chaining operator in JavaScript
Cover image for Using the optional chaining operator in JavaScript

Using the optional chaining operator in JavaScript

55
Comments 8
3 min read
Statically type checking Python code using Pyright
Cover image for Statically type checking Python code using Pyright

Statically type checking Python code using Pyright

3
Comments
5 min read
Adding Fixtures and Parameterized Functions to PyTest
Cover image for Adding Fixtures and Parameterized Functions to PyTest

Adding Fixtures and Parameterized Functions to PyTest

2
Comments
4 min read
Test Python applications with Pytest
Cover image for Test Python applications with Pytest

Test Python applications with Pytest

5
Comments
3 min read
Installing Intel-based packages using Homebrew on the M1 Mac
Cover image for Installing Intel-based packages using Homebrew on the M1 Mac

Installing Intel-based packages using Homebrew on the M1 Mac

2
Comments
4 min read
How to format a Number as Currency in JavaScript
Cover image for How to format a Number as Currency in JavaScript

How to format a Number as Currency in JavaScript

30
Comments 6
3 min read
Getting Started with Flask: A Python Microframework
Cover image for Getting Started with Flask: A Python Microframework

Getting Started with Flask: A Python Microframework

11
Comments 2
4 min read
Managing Python dependencies using Virtual Environments
Cover image for Managing Python dependencies using Virtual Environments

Managing Python dependencies using Virtual Environments

4
Comments
4 min read
Configure Multiple Accounts in AWS CLI
Cover image for Configure Multiple Accounts in AWS CLI

Configure Multiple Accounts in AWS CLI

4
Comments
3 min read
JavaScript Proxy: What and Why?
Cover image for JavaScript Proxy: What and Why?

JavaScript Proxy: What and Why?

6
Comments
4 min read
Visual Studio Code Snippets: Boost productivity with shortcuts
Cover image for Visual Studio Code Snippets: Boost productivity with shortcuts

Visual Studio Code Snippets: Boost productivity with shortcuts

47
Comments
5 min read
Avoiding race conditions and memory leaks in React useEffect
Cover image for Avoiding race conditions and memory leaks in React useEffect

Avoiding race conditions and memory leaks in React useEffect

324
Comments 19
4 min read
3 Object Initialization Shorthand Notations In JavaScript
Cover image for 3 Object Initialization Shorthand Notations In JavaScript

3 Object Initialization Shorthand Notations In JavaScript

16
Comments
3 min read
Using the useCallback React hook
Cover image for Using the useCallback React hook

Using the useCallback React hook

29
Comments
3 min read
Understanding the useRef react hook
Cover image for Understanding the useRef react hook

Understanding the useRef react hook

7
Comments
5 min read
How to cancel an HTTP fetch request
Cover image for How to cancel an HTTP fetch request

How to cancel an HTTP fetch request

38
Comments
3 min read
Use redux-like middleware for useReducer in React

Use redux-like middleware for useReducer in React

5
Comments
4 min read
How to write your own custom React hooks

How to write your own custom React hooks

20
Comments 1
4 min read
Provide callback to useState hook like setState in class components
Cover image for Provide callback to useState hook like setState in class components

Provide callback to useState hook like setState in class components

4
Comments
3 min read
Resolving nested queries in GraphQL using Apollo Server
Cover image for Resolving nested queries in GraphQL using Apollo Server

Resolving nested queries in GraphQL using Apollo Server

6
Comments
5 min read
Creating a GraphQL API with Apollo Server

Creating a GraphQL API with Apollo Server

6
Comments
6 min read
How to unit-test a private (non-exported) function in JavaScript
Cover image for How to unit-test a private (non-exported) function in JavaScript

How to unit-test a private (non-exported) function in JavaScript

4
Comments
4 min read
Detecting click outside component using React hooks
Cover image for Detecting click outside component using React hooks

Detecting click outside component using React hooks

9
Comments 2
3 min read
Learning context API and the useContext React hook
Cover image for Learning context API and the useContext React hook

Learning context API and the useContext React hook

15
Comments
5 min read
Beating JSON performance using Protocol Buffers
Cover image for Beating JSON performance using Protocol Buffers

Beating JSON performance using Protocol Buffers

20
Comments 4
5 min read
Understanding the useReducer hook in React
Cover image for Understanding the useReducer hook in React

Understanding the useReducer hook in React

17
Comments
6 min read
React Hooks and Local Storage: Let’s build a ToDo app
Cover image for React Hooks and Local Storage: Let’s build a ToDo app

React Hooks and Local Storage: Let’s build a ToDo app

80
Comments 13
11 min read
GraphQL Basics: Types, Queries, Mutations, and Schema 

GraphQL Basics: Types, Queries, Mutations, and Schema 

30
Comments
5 min read
Why GraphQL?
Cover image for Why GraphQL?

Why GraphQL?

255
Comments 34
6 min read
Using Prettier to format your JavaScript code
Cover image for Using Prettier to format your JavaScript code

Using Prettier to format your JavaScript code

8
Comments
4 min read
JavaScript Promise combinators: race, all, allSettled, any
Cover image for JavaScript Promise combinators: race, all, allSettled, any

JavaScript Promise combinators: race, all, allSettled, any

37
Comments
6 min read
loading...