DEV Community

saransh kataria profile picture

saransh kataria

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

Work

Senior Software Developer

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
GraphQL
Copy/Pasting output from the terminal

Copy/Pasting output from the terminal

11
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

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

7
Comments
1 min read
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

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

8
Comments 8
2 min read
Object destructuring in TypeScript

Object destructuring in TypeScript

5
Comments 2
1 min read
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

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

How to Convert a React Component to an Image

24
Comments 6
2 min read
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

Access the Clipboard in JavaScript

1
Comments
1 min read
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

How to Remove a Property from a JavaScript Object

5
Comments
2 min read
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

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

3
Comments
2 min read
An Introduction to Web NFC

An Introduction to Web NFC

11
Comments
3 min read
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

The Pomodoro Technique: Productivity hacks

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

React Fragments: What and Why

6
Comments
2 min read
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

How to Measure JavaScript Execution Time

55
Comments
2 min read
The Beginner Syndrome

The Beginner Syndrome

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

What Are Numeric Separators in JavaScript?

4
Comments
1 min read
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

How to Enforce Coding Standards Using Husky Pre-Commit Hooks

7
Comments
2 min read
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

How to Use Utility Types for Transforming TypeScript Types

4
Comments
4 min read
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

Writing better conditional expressions in JavaScript

61
Comments 6
4 min read
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

Using the optional chaining operator in JavaScript

55
Comments 8
3 min read
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

Adding Fixtures and Parameterized Functions to PyTest

2
Comments
4 min read
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

Installing Intel-based packages using Homebrew on the M1 Mac

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

How to format a Number as Currency in JavaScript

29
Comments 6
3 min read
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

Managing Python dependencies using Virtual Environments

4
Comments
4 min read
Configure Multiple Accounts in AWS CLI

Configure Multiple Accounts in AWS CLI

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

JavaScript Proxy: What and Why?

6
Comments
4 min read
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

Avoiding race conditions and memory leaks in React useEffect

323
Comments 19
4 min read
3 Object Initialization Shorthand Notations In JavaScript

3 Object Initialization Shorthand Notations In JavaScript

14
Comments
3 min read
Using the useCallback React hook

Using the useCallback React hook

29
Comments
3 min read
Understanding the useRef react hook

Understanding the useRef react hook

7
Comments
5 min read
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

Provide callback to useState hook like setState in class components

4
Comments
3 min read
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

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

4
Comments
4 min read
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

Learning context API and the useContext React hook

15
Comments
5 min read
Beating JSON performance using Protocol Buffers

Beating JSON performance using Protocol Buffers

20
Comments 4
5 min read
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

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

78
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?

Why GraphQL?

255
Comments 34
6 min read
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

JavaScript Promise combinators: race, all, allSettled, any

37
Comments
6 min read
loading...