SNsudheer nunnainwiredwhiz.hashnode.dev·May 21, 2024 · 2 min readArrow functions vs Normal functionsIn JavaScript, both arrow functions and normal functions can access variables from their enclosing scope due to lexical scoping. However, there is a notable difference in how this is treated by these two types of functions, which can affect how you m...00
SNsudheer nunnainwiredwhiz.hashnode.dev·Jan 27, 2024 · 4 min readHigher Order Components (HOC) in ReactIn the JSX world, an HOC is basically this: a component that takes another component as an argument and returns a new component that is the result of the composition of the two. HOC’s are great for shared behavior across components that we’d rather n...00
SNsudheer nunnainwiredwhiz.hashnode.dev·Jan 27, 2024 · 1 min readReact useState VS useReducerReact exposes two hooks for managing state: useState and useReducer. Both of these hooks are used to manage state in a component. The difference between the two is that useState is a hook that is better suited to manage a single piece of state, while...00
SNsudheer nunnainwiredwhiz.hashnode.dev·Jan 27, 2024 · 3 min readLazy LoadingOne of the main problems with shipping too much JavaScript is that it can slow down page load times. JavaScript files are typically larger than other types of web assets, such as HTML and CSS, and require more processing time to execute. This can lea...00
SNsudheer nunnainwiredwhiz.hashnode.dev·Jan 27, 2024 · 5 min readMemoization 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...00