Web Development
Const vs. Function For React Functional Components
For some time now I have been wondering if there is a benefit to using function over const when declaring functional components, and vice versa. So, I decided to do a little research, and I will sum…
5 Ways to Download Front-end Files
1. a label, 2. window.open, 3. location.href, 4. location.? Other properties, and 5. XMLHttpRequest. What are the pros and cons of each method?
How to Check if a Value is Within a Range of Numbers in JavaScript
We can use the JavaScript’s greater than or equal to and less than or equal to operators to check if a number is in between 2 numbers. We can use the JavaScript’s greater than or equal to and less…
Batch Updates in React 17 or Earlier Versions
React batch updates for multiple setState() calls inside setTimeout, promises, and native event handlers
How to Put a Clear Button Inside an HTML Text Input Box
A guide on how to put a clear button inside an HTML input text box with JavaScript.
Angular DOM Manipulation: ElementRef, TemplateRef, and ViewContainerRef
An overview of elements, templates, views, and view containers in Angular and how to modify the DOM programmatically.
5 Ways To Detect Mobile Browsers in JavaScript
Responsive web design is not only about CSS
An Amazing Visual Studio Code Extension You Might Not Know About
Introducing Blackbox: The AI that gives you code solutions in response to the questions you enter.
How to Set Focus on an Input in React
Make the user experience better by automatically applying focus to inputs
Passing Arguments to Event Listeners in JavaScript
JavaScript essentials that you might not know about