Tag: JS

Mastering React JS SOLID Principles

What are SOLID principles? SOLID principles are five design principles that help us keep our application reusable, maintainable, scalable, and loosely coupled. The SOLID principles are: [S] — Single-responsibility principle [O] — Open-Closed principle [L] &mdash...

Overlapping Executions with setInterval() in JS

There are instances when we need to execute a piece of code for multiple iterations at specified intervals. JavaScript comes with some amazing built-in objects and functions and two such functions which solve our problem are setInterval(callback, interval) and setTimeout(callback, del...

Fetch Data in React JS in modern way

There are several ways to fetch data in a React application. Here are some of the most common: Fetch API : The Fetch API is a built-in browser API for fetching resources, including data from a server. It returns a Promise that resolves to the response object. You can use the Fetch API in combi...

Code Like A JavaScript Pro With These Useful Js Snippets

In this article I'm going to be sharing with you some useful JavaScript codes/snippets to help you code faster and not be brainstorming different ways to perform simple tasks with JavaScript. Photo by Safar Safarov on Unsplash The first one is converting objects into an array of key va...

React JS Best Practices From The New Docs

New React docs were recently shared on the official React website. The React team is making a final pass before fully switching over but — at the time of writing — all of the commonly used modern APIs are documented, making it the best way to learn the framework. React vet...

Quick Node JS installation on your device

if the output is not returning a similar one, then let’s get it installed by running this command on your Mac brew install curl (what is brew?) and wait until the process is done. To verify the installation is completed, you can type curl --version then it should give you t...

Getting Started With Fabric JS in Angular

This article discusses the basics of using the Fabric JS Canvas drawing library in an Angular application. In the past, I’ve used Pixi JS or SVG.js to illustrate dynamic drawing in an Angular application. The primary purpose of those articles was to illustrate specific algorithms and...

What is React Js?

React.js is a JavaScript library for building user interfaces, particularly for single-page applications where the user interface needs to be highly dynamic and responsive. React allows developers to create reusable UI components and manage the state of these components efficiently. One of the ke...