Shaurya KaliainJavaScript in Plain EnglishWhat Fired My useEffect?Developing in React brings its set of challenges, especially when dealing with side effects in functional components. React’s useEffect…Apr 41Apr 41
Shaurya KaliainJavaScript in Plain EnglishWhen to useCallback vs useMemoIn the expansive ecosystem of React, hooks play a pivotal role in crafting functional components and managing their state and side effects…Apr 2Apr 2
Shaurya KaliainJavaScript in Plain EnglishJest Spy on an Exported FunctionThe spyOn utility in Jest is incredibly versatile, enabling you to monitor, track, and even replace the behavior of functions. However…Apr 2Apr 2
Shaurya KaliainJavaScript in Plain EnglishReact Performance: useState Lazy InitializationWhenever you need to set the initial value of the state from a function that returns a value (see below), the function will get called at…Aug 12, 2022Aug 12, 2022
Shaurya KaliainJavaScript in Plain EnglishGenerator Functions in JavaScript: A Simple GuideGeneral JavaScript functions can’t be interrupted in the middle of function execution, that is, there is no interruption from the time the…Jul 6, 2022Jul 6, 2022
Shaurya KaliainJavaScript in Plain EnglishHow to Add Disqus to Gatsby BlogA short guide on how you can add Disqus to your Gatsby blog.Jul 1, 2022Jul 1, 2022