Try the NEW, AI-powered, chat!
If you've ever been stuck on `NODE_ENV is not recognized` while developing on Windows, this post is for you.
Mocking is a fundamental skill in testing. It allows you to avoid testing parts of your code that are outside your control, or to get reliable return values from said code.
I recently learned the name of a technique I use to troubleshoot particularly tricky bugs: bisecting. From learning that name I was able to discover git bisect which has changed my debugging world.
JS - Snippet Good! now has React Hook snippets!
I just released version 1.5.0 of my VS Code extension: JS - Snippet Good!
A bundle visualizer can be a very handy tool for tracking down packages, or even your own code, for large file size offenders
A complete code example of how to use the useContext React hook with no fluff or extra overhead.
Throughout this article I'm going to cover what Tagged Templates are and how you can write a simplified foundation of a Styled Component function to better understand the syntax.
Just a quick tip here that most programmers I meet haven't seen before so I thought it'd be cool to share.
If you are using React Router for your SPA (Single Page App) routing, and are running into a problem where hitting a url directly fails to load your route, there is a relatively simple solution...
This is a simple process, yet I had a more difficult time than I'd like trying to find the information not scattered in bits and pieces around the web.
Chrome DevTools has a Command Menu, much like VSCode and other editors!
Clarify some seemingly common confusion points, as well as showcase some minimal configurations to get immediate savings on your final output bundle.
There are, of course, lots of blogs writing about this topic, but if you have found your way here I hope this will give you the missing pieces to understanding closures in Javascript
A common occurance when using a prototypal or class based approach to setting up eventListeners is that you want to access your event handling method...