PR Reviewingremove screen.debug() please include plugin:import/typescript in .eslintrc.cjs file to remove eslint errors, example do not try to pull out constants, enums or interfaces in a seperate directory from the inside of a namespace because it would be bett...1 min read·kashyap171ankur.comApr 18, 2025
.eslintrc.cjsmodule.exports = { globals: { vi: true }, extends: [ ‘plugin‘:’vitest-globals/recommended’, ‘plugin‘:’@tanstack/eslint-plugin-query/recommended’, ‘plugin‘:’import/typescript’ ], plugins: […]1 min read·kashyap171ankur.comApr 18, 2025
Debouncing in JavaScriptDebouncing is a technique that is used to improve the performance of our website by optimizing time-consuming tasks. For e.g. sending a request to the server do not fire so often, which may result in1 min read·kashyap171ankur.comMay 31, 2024
Single Responsibility PrincipleSuppose you have a function or a class, or any single identity of your code, that should have a single responsibility. Let's understand by using below example: import React from 'react'; import { useRouteError } from 'react-router-dom'; const Error ...2 min read·kashyap171ankur.comFeb 6, 2024
Batching of multiple render methodsimport React from 'react'; import UserClass from "./UserClass"; import UserClass2 from "./UserClass2"; const userData = [ { name: "Ankur Kashyap", location: "Bengaluru", contact: "abc" }, { name: "Manjulik...3 min read·kashyap171ankur.comFeb 5, 2024