Shashank Rustagishashankrustagi.hashnode.dev·Mar 9, 2024Memoization with ReselectIntroduction Memoization is a powerful optimization technique that saves time by storing the results of expensive function calls and reusing them when the same inputs occur. In the context of JavaScript and React, Reselect is a popular library that a...Discussnuclearjs
Ndeye Fatou Diopndeyefatoudiop.com·Feb 21, 20245 Small (Yet Easily Fixable) Mistakes Junior Frontend Developers Make With React MemoizationI have reviewed more than 1,000 frontend pull requests. Like many junior developers, I made some common mistakes when I started, especially regarding memoization. If you're in the same boat, here are 5 small mistakes you can quickly fix to do memoiza...DiscussReact
Tushar Khannacodertushar.hashnode.dev·Feb 13, 2024Learn Memoized functions in JS with ChatGPTconst memoize = function(fn) { const cache = {}; return function(...args) { const key = JSON.stringify(args); return cache[key] || (cache[key] = fn(...args)); } } Me: make this code production ready ChatGPT: To make the memoize functio...DiscussJavaScript
Akash Thoriyaakashthoriya.hashnode.dev·Jan 28, 2024memo in ReactExpert-Level Explanation React.memo is a higher-order component that memoizes a functional component. It performs a shallow comparison of the previous and new props and re-renders the component only if the props have changed. This is similar to PureC...DiscussReactJS Fundamentals for InterviewsReact
sudheer nunnawiredwhiz.hashnode.dev·Jan 27, 2024Memoization with React.memoMemoization is a technique used in computer science to optimize the performance of functions by caching their previously computed results. In simple terms, memoization stores the output of a function based on its inputs so that if the function is cal...DiscussReact
Kumar Sakshamneuralrealm.hashnode.dev·Jan 20, 2024Memoization: The TRUE Way To Optimize Your Code In PythonIn this article, we will be discussing a common technique in Python known as memorization. This technique allows us to cache results and significantly speed up our functions. If we have a function that takes 30 seconds to execute, memorization can he...Discuss·5 likes·36 readsPython
PritiforCodeParrot 10x Dev10xdev.codeparrot.ai·Jan 19, 2024Memoization: Performance Optimisation in JavascriptMemoization is a powerful optimization technique in programming, particularly useful in JavaScript and React applications. It involves caching the results of function calls to avoid redundant processing. It also is one of the most asked questions in ...Discuss·1 like·61 readsJavaScript
Sahil Karwanisahil4510.hashnode.dev·Jan 6, 2024What About JavaScript Closures?JavaScript, the language that powers the dynamic and interactive web, is known for its unique features and quirks. One such feature that adds a touch of magic to our code is the concept of closures. In this blog post, we embark on a journey to unrave...DiscussJavaScript
Gautam VajaforCodeParrot 10x Dev10xdev.codeparrot.ai·Jan 5, 2024Optimizing Your React App: Strategies for Peak PerformanceIf you are thinking that your react app is slow, then you are not alone. Many developers face this issue. In this article, we'll delve into common performance issues in React and explore effective strategies to optimize your app for peak performance....Discuss·2 likes·62 readscode splitting
Fatima Muhammadbintmuhd.hashnode.dev·Oct 30, 2023When to use React.MemoWhat is memoization? Memoization is an optimization technique in programming that stores the results of expensive function calls and returns the cached result when the same inputs occur again, rather than recomputing the function. In the context of R...DiscussReact