Yogesh Chavan

@myogeshchavan97

2245 Points

12 Followers

51 Posts

0 Answers

Joined April 27th, 2021

Technical Writer | Freelancer and Full Stack Developer | JavaScript | React | Node.js.

React Hooks Cheatsheet

React Hooks Cheatsheet

React hooks are great additions to React which has completely changed how we write code. Hooks were introduced in React starting with version 16.8.0. Before React hooks, there was no way of using state and lifecycle methods in functional components, and that’s why the functional components were called Stateless Functional Compon...

Yogesh Chavan

4 days ago

4
Select One:
Modern JavaScript – Imports, Exports, Let, Const, and Promises in ES6+

Modern JavaScript – Imports, Exports, Let, Const, and Promises in ES6+

Over the past few years, there have been many updates to the JavaScript language. And these updates are very useful if you want to improve your coding. ​Keeping abreast of the newest developments in the language is really important. It can help you get a higher paying job, keep up to date with the latest trends, improve your cod...

Yogesh Chavan

1 week ago

3
Select One:
Importance of JavaScript Exec Method In JavaScript

Importance of JavaScript Exec Method In JavaScript

Regular expressions are great for finding patterns in a string for a particular match. They help us to convert complex logic into short and easy-to-understand code. Today we will see one such great method for pattern matching in JavaScript which is the exec method. We will also see some code examples where exec is really helpful...

Yogesh Chavan

1 week ago

4
Select One:
How to Easily Add Google Map to Your Webpage

How to Easily Add Google Map to Your Webpage

On most of the company websites, you will find locations or contacts page that displays that company location in that country or state in a google map along with the company address. This is a pretty common requirement even for food or hotel business-related websites. So in this article, we will see how to add a google map with...

Yogesh Chavan

2 weeks ago

5
Select One:
Speed Up Your Coding Using Emmet - A Really Powerful Tool

Speed Up Your Coding Using Emmet - A Really Powerful Tool

In this article, we will explore all about Emmet. A very popular and highly useful tool that is built into almost every IDE out there like Visual Studio Code, Sublime Text etc. If you're using Codepen, then you might be happy to know that Emmet is also available in CodePen. So you can type abbreviations to generate code in Code...

Yogesh Chavan

2 weeks ago

4
Select One:
Best Way to Format And Manipulate Numbers In JavaScript

Best Way to Format And Manipulate Numbers In JavaScript

Today we will see a very popular and easy-to-use library that allows us to convert and manipulate numbers. Many times we need to display numbers like 1400 to 1.4k, 1000000 to 1M which may be numbers of views, likes or comments. Sometimes we need to add commas in long numbers to easily understand it. It's very difficult to handle...

Yogesh Chavan

3 weeks ago

4
Select One:
How To Easily Understand Any Regular Expression In The World

How To Easily Understand Any Regular Expression In The World

Today we will see how can we easily understand any JavaScript regular expression or write your own regular expression easily. To do this, navigate to this website. The UI looks like this: Consider, we want to check if the input contains digits so we will add the \d in the regular expression search box section and the input for...

Yogesh Chavan

3 weeks ago

4
Select One:
Most Useful VS Code Shortcuts To Improve Your Productivity

Most Useful VS Code Shortcuts To Improve Your Productivity

Visual Studio Code is the most widely used and most loved code editor for application development. So in this article, we will see some of the widely used shortcuts which make developers' life easy and coding faster. So let's get started. 1. Quickly Search File On Mac Cmd + P : Search file by name On Windows Ctrl + P : Search fi...

Yogesh Chavan

1 month ago

6
Select One:
How CSS Specificity Works? A Really Important CSS Topic

How CSS Specificity Works? A Really Important CSS Topic

CSS stands for Cascading Style Sheet. This means that the styles flow through the entire application and are applied to elements with the matching identifiers. Since CSS is a global styling mechanism, we must learn how browsers determine what style to apply when there are conflicts. Cascade means resolving the conflict between...

Yogesh Chavan

1 month ago

6
Select One:
The Most Important Thing You Don't Know About Promises

The Most Important Thing You Don't Know About Promises

In this article, we will see the most important thing about promises which you might not know but it's important to have knowledge about it to avoid creating bugs in the application. So let's get started. Take a look at the below code: const promise = new Promise((resolve, reject) => { resolve(); }); promise .then(() =&g...

Yogesh Chavan

1 month ago

4
Select One:
Most Useful Features of Chrome Developer Tools That You Must Know

Most Useful Features of Chrome Developer Tools That You Must Know

Chrome developer tools are an essential part of web development. Following are some of the tips and tricks of chrome developer tools to make your life a lot easier during development. Take Screenshot Of The Entire Page Right click anywhere on the page and select inspect option to open the Chrome developer tool Open command menu...

Yogesh Chavan

1 month ago

7
Select One:
Redux Middleware – What it is and How to Build it from Scratch

Redux Middleware – What it is and How to Build it from Scratch

In this article, we will explore what is a middleware in Redux, why it's used, and how you can create your own middleware from scratch. So let's get started. Want to learn Redux from scratch and build a full-stack food ordering app with stripe payment integration? Check out my Mastering Redux course. What Is Redux Middleware?...

Yogesh Chavan

1 month ago

7
Select One:
When It's Not Good to Use React State

When It's Not Good to Use React State

In React, whenever we are working with any data, we always use the state for storing that data which may be a string, number or any complex object. This is fine if you are using that state while rendering the component or If you want to do something when the state value changes but If you are using that state just for storing d...

Yogesh Chavan

1 month ago

3
Select One:
How to Add Type Checking in React

How to Add Type Checking in React

React is a Javascript library and Javascript is a loosely typed language so by default it does not provide any type checking because of which it's very easy to create bugs in your application when we pass the wrong type of data and it will easily crash your application. There are various static type checkers used in larger appli...

Yogesh Chavan

1 month ago

5
Select One:
An Introduction to CSS Modules in React

An Introduction to CSS Modules in React

When it comes to React, the following are some of the ways of styling in React. Inline CSS Normal CSS CSS In JS libraries like styled-components CSS Modules SASS/SCSS In this article, we will explore how to use CSS Modules. What is a CSS module? CSS module is a CSS file in which all class names and animation names are scoped...

Yogesh Chavan

1 month ago

2
Select One:
How To Create A React App From Scratch Using Webpack 5 + Babel

How To Create A React App From Scratch Using Webpack 5 + Babel

The easiest way of creating a react application is using a create-react-app tool. This is good to use when you have just started learning React but it hides a lot of details regarding: What happens under the hood What configuration is needed to work with the latest features How does the conversion from ES6 to ES5 happen Also,...

Yogesh Chavan

1 month ago

8
Select One:
How to Configure ESLint For Your Project From Scratch

How to Configure ESLint For Your Project From Scratch

ESLint is a linter that helps to improve the code quality and fix bugs beforehand to avoid them from coming at runtime. It also helps to avoid hard to debug issues in the future. Knowing how to use ESLint is very important as most companies are actively using it. There are also other linters available like jslint, jshint but ESL...

Yogesh Chavan

1 month ago

8
Select One:
The Most Surprising Behavior of JavaScript Regular Expression

The Most Surprising Behavior of JavaScript Regular Expression

JavaScript regular expression objects are stateful when they have the /g or /y flag in the pattern to match. When we create a regular expression that has the /g flag, it maintains the lastIndex property which keeps track of the index where to start finding for the next match. So next time when we start testing using the same...

Yogesh Chavan

2 months ago

5
Select One:
Why You Should Use async And defer Attributes In a Script Tag

Why You Should Use async And defer Attributes In a Script Tag

Do you know the importance of defer and async attributes in the script tag? This is one of the most popular interview question asked in JavaScript interviews. When we load any webpage in the browser, the browser generates a DOM(Document Object Model) by parsing the document. When there is no attribute(defer or async) to the scri...

Yogesh Chavan

2 months ago

3
Select One:
How to Write Better React Components

How to Write Better React Components

JavaScript added many useful features starting with ES6 and nd these changes help developers write code that is short and easy to understand and maintain. When you use create-react-app to create a React App, you already have support for these changes. This is because it uses Babel.js to convert the ES6+ code to ES5 code which al...

Yogesh Chavan

2 months ago

4
Select One:
Open any Github Repo in VS Code

Open any Github Repo in VS Code

Introduction GitHub has added built-in support to open your repository in Visual Studio Code easily. Previously, we either need to use octotree extension to browse files or use github1s to view in Visual Studio Code. But github1s was opening just a read-only editor where you can't make any modifications to files. Now, with GitHu...

Yogesh Chavan

2 months ago

7
Select One:
How Prototypal Inheritance Works In JavaScript

How Prototypal Inheritance Works In JavaScript

Before starting with prototypal inheritance let’s first understand what a prototype is. All the objects in JavaScript like Array, Boolean, Date etc all inherit properties and methods from their prototype. Object is the at top of the Prototype chain means all the other objects inherit their properties and methods from Object.pr...

Yogesh Chavan

2 months ago

4
Select One:
How to Pass Additional Data For a Route In React Routing

How to Pass Additional Data For a Route In React Routing

In this article, we will see how we can pass extra data while redirecting to a different route in React that uses react-router-dom library. So let’s get started. Using Link Normally we use the Link component from react-router-dom as shown below: <Link to="/register">Register</Link> So when we click on the...

Yogesh Chavan

2 months ago

4
Select One:
How to Easily Fix The Port is Already in Use Error

How to Easily Fix The Port is Already in Use Error

Have you ever struggled with the the port is already in use error while starting any application? A lot of times when we are using multiple applications or forget to stop the previous process, we get the the port is already in use error. Then we try to find the process using that port and then kill it or maybe restart the machin...

Yogesh Chavan

2 months ago

5
Select One:
A Complete Introduction to JavaScript Array filter Method

A Complete Introduction to JavaScript Array filter Method

The Array filter method is one of the most widely used methods in JavaScript. It allows us to quickly filter out elements from the array with certain criteria. So in this article, you will learn everything about the filter method and its various use cases. So let's get started. Take a look at the below code that does not use th...

Yogesh Chavan

2 months ago

4
Select One:
A Very Useful Git Command For Searching Text

A Very Useful Git Command For Searching Text

In this article, we will see a very useful command to search for a particular text inside your project. Many times when working on code, you want to find out where in the repository a particular text is used, either to replace it with other text or for debugging purpose. If you try to use a global search in your favorite IDE lik...

Yogesh Chavan

3 months ago

7
Select One:
Quickly remove node_modules folders from your system to free up disk space

Quickly remove node_modules folders from your system to free up disk space

Whenever, we are working with React, Angular, Nodejs or any other library or framework, a node_modules folder gets generated when we install the dependencies which takes up a lot of space and we don’t bother to remove the node_modules folder once our job is done. So we end up creating many node_modules folders in various projec...

Yogesh Chavan

3 months ago

7
Select One:
Understanding Closures in JavaScript

Understanding Closures in JavaScript

Introduction In this article, we will learn about closures in JavaScript. Every JavaScript developer should be aware of closures as it's the most frequently asked interview question as well as understanding it clearly will help you to avoid creating bugs in your code. So let's get started. What is closure? Before diving into clo...

Yogesh Chavan

3 months ago

6
Select One:
Using Serverless Redis as Database for Netlify Functions

Using Serverless Redis as Database for Netlify Functions

In this tutorial, we'll see how we can use Redis as a database for caching purposes to load the data faster in any type of application. So let's get started. What is Redis Redis is an in-memory data store used as a database for storing data Redis is used for caching purpose. So If your API data is not frequently changing then we...

Yogesh Chavan

3 months ago

5
Select One:
A Curated List of Free APIs For Your Next Project

A Curated List of Free APIs For Your Next Project

Public APIs This GitHub repository contains a ton of free APIs related to various categories like Games, News, Weather, Food & Drink etc. So don't miss this out! Chuck Norris Jokes API This is a free JSON API for hand-curated Chuck Norris facts. Genius API Using this API you can search for song lyrics and their meanings....

Yogesh Chavan

3 months ago

7
Select One:

Loading More Content