Pankaj Patel

Pankaj Patel @pankajpatel

About: Programmer, Blogger, Photographer and little bit of everything

Location:
Lyon, France
Joined:
Mar 5, 2019

Pankaj Patel
articles - 34 total

Too many useState? Let's useReducer!

Modern Frontend is similar to good old web development, but with one catch: the page in the browser...

Learn More 0 0Mar 28 '23

Can I use hover on Touch Devices?

Current web development is revolving around responsiveness when it comes to supporting multiple form...

Learn More 6 2Mar 9 '22

Ways to convert String to Number in JS

Converting from one type to another (or simply called typecasting) is needed very frequently in any...

Learn More 7 0Jun 14 '21

3 Must haves for Merge Requests for swift Code Review

One huge part of Code Collaboration is Merge Requests (MR). Here you can tell other members of the...

Learn More 5 0Apr 9 '21

When NOT to choose Next.js

Next.js has been the talk of the town since its release. And, all I could hear was how awesome is...

Learn More 2 2Mar 22 '21

TIL: cache-control is as inconsistent as it can get in different Browsers

Today a colleague started asking questions on cache-control and how to achieve consistent behaviour s...

Learn More 0 0Feb 5 '21

Fixing WebpackChunkName for Dynamic Imports

Lazy Loading is a hot topic for optimization of the web application. I was trying to optimize the Re...

Learn More 5 0Jan 27 '21

Gatsby or Next.js?

Hey all, Just wanted to know about what community thinks when choosing between Gatsby and NextJS? D...

Learn More 2 9Jan 17 '21

🚦 Submitting a Form to different Actions in HTML5

For so long, I had believed that one Form can only be submitted to one Action URL without any JS. I...

Learn More 2 0Jan 13 '21

Building Fast Forms in React with HTML5 & Validations

If you are making a web app, you will need to create Forms most of the time. Forms are notorious for...

Learn More 29 1Dec 15 '20

Where do you initialize state in React Component?

Functional Components are super cool. Though, Classical components are still used & so is the con...

Learn More 6 2Nov 5 '20

5 Tips for Component Based Development

Component-based Development has taken the FrontEnd Development by storm. And Components not being an...

Learn More 12 0Sep 19 '20

Getting started with Eleventy (11ty)

JAMStack is Fast. Fast for Development and to deliver ultra Fast websites. To develop with JAMStack,...

Learn More 10 0Sep 11 '20

Are you using Trailing Commas in your JavaScript?

I am presuming that you are using objects and arrays every day in your JavaScript. And I am also su...

Learn More 7 0Sep 2 '20

Now you can manage Aliases for FrontEnd Workflow at one place

Aliases are very handy; be it in CLI or in FrontEnd development. In previous post, we had seen the b...

Learn More 6 0Aug 26 '20

Add Test Coverage Labels with Github Actions

A good Testing setup will help you release with confidence and sleep with peace. The Testing setup s...

Learn More 6 0Aug 21 '20

AutoPublish on GitHub Pages with Github actions

GitHub pages are a great place to host the Demos and Personal Sites. But, often, you need to publish...

Learn More 12 0Aug 11 '20

🤔 Do you use Redux, if not what do you use?

I don't hate Redux but you need to maintain a lot of files. This makes me cringe but seems like not-...

Learn More 8 7Aug 5 '20

Animating the Progress Percent Change in React

Visual Feedback is very important in UI design. It keeps the user informed and engaged with their act...

Learn More 10 0Jul 29 '20

ReactJS: A Simple Custom Hook

React Hooks have changed the way we write components. Hooks have mentally pushed us to write more Fun...

Learn More 7 0Jul 22 '20

This is how you can activate Github Profile README

The Github Profile Readme design was being in twitter conversation for a while. I discovered it with...

Learn More 13 2Jul 11 '20

What is JAMStack & Why you should care?

JAMStack or JavaScript, APIs and Markup Stack is a modern shift in the FrontEnd Space to develop fast...

Learn More 20 0Jun 4 '20

Yarn or npm: What's your preferred package manager?

In the FrontEnd space, yarn and npm are very commonly know names as the package managers. Though I h...

Learn More 10 0May 28 '20

Integrating REST API in ReactJS with fetch & useEffect

Integrating API in a React Project can be easily done by achieving simple project structure. Let’s se...

Learn More 47 3May 12 '20

ToDo app in React with Hooks & Context API

Today, Making a react app is very easy and fast as compared to in the past. This is the time of Fun...

Learn More 54 0Mar 25 '20

You don't need Libraries for internationalisation (i18n) of Dates

All apps use of dates in some sort of way. And one common operation with a date is to display it in a...

Learn More 45 3Feb 19 '20

Different ways to create Arrays in JavaScript

In most of the programming languages, A collection of a certain finite number of items is an Array. O...

Learn More 11 0Feb 11 '20

Introduction to WebComponents with ShadowDOM

WebComponents can be the salvation of Component-based web development. Where all the front-end frame...

Learn More 56 3Feb 5 '20

Different ways to create Objects in JavaScript

After Primitive types in JavaScript, Objects are another type of Variables in JavaScript. And JavaScr...

Learn More 134 3Feb 3 '20

NPX: work faster with npm package binaries

With Node.js, building CLI utilities and development tools have gotten so much easier. Though, it al...

Learn More 43 2Dec 24 '19