Development

Using Font Awesome with React

Font Awesome is a great resource to use various types of icons in your project including well-known social media icons…

2 years ago

How to write comments in React (JSX)?

I was recently trying to comment out some logic inside my JSX to add context about what a potentially complex…

2 years ago

How to write more readable JavaScript conditionals

One of the practices of clean code is to make it more readable. And a fairly common use case in…

2 years ago

How to debug better using $ sign shortcuts in Chrome devtools

Chrome devtools has a collection of utilities that can be used to perform common debugging tasks and make our life…

2 years ago

Deep copying in JavaScript using structuredClone

For as long as anyone can remember, deep copying in JavaScript was not a built-in feature and we had to…

2 years ago

Chrome devtools: Using logpoints for logging messages directly

When it comes to debugging JavaScript in Chrome devtools, there are two different camps: the console.log fans and the debugger/breakpoint…

3 years ago

How to prevent npm install for unsupported Node.js versions

npm configurations allow us to do quite a lot of nifty things. One of them is to allow the project…

3 years ago

How to kill a process on a port using the command line

Zombie processes are usually a pain to figure out. More often than not, I end up googling about how to…

3 years ago

Detecting dark mode preference using JavaScript

As dark themes have become popular across the web and across operating systems, we might want to check the user's…

3 years ago

JavaScript: Split string and keep the separators

String.prototype.split() is a valuable method to split strings based on a delimiter. There often comes a scenario when we want…

3 years ago
Advertisements