DEV Community

saransh kataria profile picture

saransh kataria

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

Work

Senior Software Developer

Using counters in CSS to number elements automatically

Using counters in CSS to number elements automatically

Reactions 3 Comments 2
2 min read
How to Remove a Property from a JavaScript Object

How to Remove a Property from a JavaScript Object

Reactions 4 Comments
2 min read
Script to change Zoom virtual background every day

Script to change Zoom virtual background every day

Reactions 5 Comments
3 min read
Optimize JavaScript Loading with ‘defer’ and ‘async’ Attributes

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

Reactions 4 Comments
2 min read
An Introduction to Web NFC

An Introduction to Web NFC

Reactions 7 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

Reactions 17 Comments
2 min read
The Pomodoro Technique: Productivity hacks

The Pomodoro Technique: Productivity hacks

Reactions 56 Comments 13
3 min read
React Fragments: What and Why

React Fragments: What and Why

Reactions 6 Comments
2 min read
Secure Web Applications Using Sub Resource Integrity

Secure Web Applications Using Sub Resource Integrity

Reactions 4 Comments
2 min read
How to Measure JavaScript Execution Time

How to Measure JavaScript Execution Time

Reactions 19 Comments
2 min read
The Beginner Syndrome

The Beginner Syndrome

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

What Are Numeric Separators in JavaScript?

Reactions 4 Comments
1 min read
Apply timeout to JavaScript Promises

Apply timeout to JavaScript Promises

Reactions 4 Comments
2 min read
How to Enforce Coding Standards Using Husky Pre-Commit Hooks

How to Enforce Coding Standards Using Husky Pre-Commit Hooks

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

Why does React State Need a New Object/Array?

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

How to Use Utility Types for Transforming TypeScript Types

Reactions 4 Comments
4 min read
TypeScript: The Difference Between Interface and Type

TypeScript: The Difference Between Interface and Type

Reactions 29 Comments 4
3 min read
Writing better conditional expressions in JavaScript

Writing better conditional expressions in JavaScript

Reactions 60 Comments 6
4 min read
Parsing and Validating Data in Python using Pydantic

Parsing and Validating Data in Python using Pydantic

Reactions 4 Comments
5 min read
Using the optional chaining operator in JavaScript

Using the optional chaining operator in JavaScript

Reactions 54 Comments 8
3 min read
Statically type checking Python code using Pyright

Statically type checking Python code using Pyright

Reactions 2 Comments
5 min read
Adding Fixtures and Parameterized Functions to PyTest

Adding Fixtures and Parameterized Functions to PyTest

Reactions 2 Comments
4 min read
Test Python applications with Pytest

Test Python applications with Pytest

Reactions 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

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

How to format a Number as Currency in JavaScript

Reactions 93 Comments 6
3 min read
Getting Started with Flask: A Python Microframework

Getting Started with Flask: A Python Microframework

Reactions 11 Comments 2
4 min read
Managing Python dependencies using Virtual Environments

Managing Python dependencies using Virtual Environments

Reactions 4 Comments
4 min read
Configure Multiple Accounts in AWS CLI

Configure Multiple Accounts in AWS CLI

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

JavaScript Proxy: What and Why?

Reactions 6 Comments
4 min read
Visual Studio Code Snippets: Boost productivity with shortcuts

Visual Studio Code Snippets: Boost productivity with shortcuts

Reactions 47 Comments
5 min read
Avoiding race conditions and memory leaks in React useEffect

Avoiding race conditions and memory leaks in React useEffect

Reactions 319 Comments 17
4 min read
3 Object Initialization Shorthand Notations In JavaScript

3 Object Initialization Shorthand Notations In JavaScript

Reactions 14 Comments
3 min read
Using the useCallback React hook

Using the useCallback React hook

Reactions 30 Comments
3 min read
Understanding the useRef react hook

Understanding the useRef react hook

Reactions 7 Comments
5 min read
How to cancel an HTTP fetch request

How to cancel an HTTP fetch request

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

Use redux-like middleware for useReducer in React

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

How to write your own custom React hooks

Reactions 21 Comments
4 min read
Provide callback to useState hook like setState in class components

Provide callback to useState hook like setState in class components

Reactions 4 Comments
3 min read
Resolving nested queries in GraphQL using Apollo Server

Resolving nested queries in GraphQL using Apollo Server

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

Creating a GraphQL API with Apollo Server

Reactions 5 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

Reactions 4 Comments
4 min read
Detecting click outside component using React hooks

Detecting click outside component using React hooks

Reactions 9 Comments 2
3 min read
Learning context API and the useContext React hook

Learning context API and the useContext React hook

Reactions 15 Comments
5 min read
Beating JSON performance using Protocol Buffers

Beating JSON performance using Protocol Buffers

Reactions 19 Comments 4
5 min read
Understanding the useReducer hook in React

Understanding the useReducer hook in React

Reactions 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

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

GraphQL Basics: Types, Queries, Mutations, and Schema 

Reactions 30 Comments
5 min read
Why GraphQL?

Why GraphQL?

Reactions 254 Comments 34
6 min read
Using Prettier to format your JavaScript code

Using Prettier to format your JavaScript code

Reactions 8 Comments
4 min read
JavaScript Promise combinators: race, all, allSettled, any

JavaScript Promise combinators: race, all, allSettled, any

Reactions 37 Comments
6 min read
Rest and Spread operator: Three dots that changed JavaScript

Rest and Spread operator: Three dots that changed JavaScript

Reactions 7 Comments
6 min read
How to import/export ES6 modules in Node

How to import/export ES6 modules in Node

Reactions 9 Comments 1
3 min read
loading...