AKAnkur Kashyapinkashyap171ankur.com·Apr 18, 2025 · 1 min readPR 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...00
AKAnkur Kashyapinkashyap171ankur.com·Apr 18, 2025 · 1 min read.eslintrc.cjsmodule.exports = { globals: { vi: true }, extends: [ ‘plugin‘:’vitest-globals/recommended’, ‘plugin‘:’@tanstack/eslint-plugin-query/recommended’, ‘plugin‘:’import/typescript’ ], plugins: […]00
AKAnkur Kashyapinkashyap171ankur.com·May 31, 2024 · 1 min readDebouncing 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 in slow processing and a bad user experience on our w...00
AKAnkur Kashyapinkashyap171ankur.com·Feb 6, 2024 · 2 min readSingle 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 ...00
AKAnkur Kashyapinkashyap171ankur.com·Feb 5, 2024 · 3 min readBatching 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...00