CORS - Cross Origin Resource SharingCORS stands for Cross-Origin Resource Sharing. It is a security feature implemented by web browsers that controls how web pages in one domain can request and interact with resources hosted on another domain. Web browsers have a same-origin policy, wh...Dec 5, 2023 · 1 min readcodechitra.hashnode.dev
Exploring the Power of Object.defineProperty() in JavaScriptAs JavaScript developers, we often find ourselves working with objects, manipulating their properties, and defining their behavior. In this blog post, let's delve into the powerful `Object.defineProperty()` method and understand how it can elevate ou...Dec 5, 2023 · 2 min readcodechitra.hashnode.dev
React Design PatternsHigher Order Components In React, a Higher-Order Component (HOC) is a design pattern that allows you to reuse component logic. It's a function that takes a component and returns a new component with additional props or behavior. HOCs are a way to sha...Oct 9, 2023 · 3 min readcodechitra.hashnode.dev
Proxy Design Pattern In JavaScriptIn JavaScript, a proxy is an object that allows you to intercept and customize operations on another object (known as the target). Proxies provide a way to define custom behavior for fundamental operations like property access, function invocation, a...Oct 8, 2023 · 3 min readcodechitra.hashnode.dev
Singleton Design PatternThe singleton pattern is a simple design trick. Imagine you have a special class, and you only want one copy of it. For example, think about having just one toolbox that lots of workers share, instead of giving each worker their own toolbox. This is ...Aug 27, 2023 · 2 min readcodechitra.hashnode.dev