wiredwhiz.hashnode.devArrow 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...May 21, 2024·2 min read
wiredwhiz.hashnode.devHigher 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...Jan 27, 2024·4 min read
wiredwhiz.hashnode.devReact 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...Jan 27, 2024·1 min read
wiredwhiz.hashnode.devLazy 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...Jan 27, 2024·3 min read
wiredwhiz.hashnode.devMemoization 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...Jan 27, 2024·5 min read