Amit Merchant

Amit Merchant

A blog on PHP, JavaScript, and more

  • Articles
  • Projects
  • Uses
  • Art
  • About
  • Ctrl K
  • Search
Laravel PHP JavaScript Git React

Dark-mode aware scrollbars using CSS

May 27, 2022 — I have created a little web app called Notepad which is also a progressive web app (PWA). It’s a minimal notepad app where you can quickly jot down stuff that gets saved in the browser’s localStorage.

Read More ⟶ ⋆ CSS

Making headers sticky using CSS for a better reading experience

May 25, 2022 — If you have ever visited the categories page of this blog previously, you might have noticed that it first lists all the categories in a pill shape, and then underneath it, category posts are listed along with the category title like so.

Read More ⟶ ⋆ CSS

Array to object conversion in JavaScript

May 21, 2022 — I was working with a group of checkboxes under a redux-form for one of my applications. So, when I select certain checkboxes here’s the format in which I was getting the value of the checkboxes.

Read More ⟶ ⋆ JavaScript

Conditionally loading CSS or any resource using media queries

May 18, 2022 — Unless you’re using something like Tailwind CSS, the stylesheet files are one of the most expensive resources that your application is loading.

Read More ⟶ ⋆ CSS

Reduce array of objects to an object in JavaScript

May 17, 2022 — The other day when working with one of the applications, I needed to convert/reduce an array of objects to an object.

Read More ⟶ ⋆ JavaScript

Unpack arrays conditionally in PHP

May 16, 2022 — Array unpacking is a sleek way of assigning the value of array elements to variables in one shot like so.

Read More ⟶ ⋆ PHP

Useful GNOME extensions that I am using on my Ubuntu 22.04

May 11, 2022 — GNOME is the official desktop environment that is been shipped with Ubuntu desktop versions for quite some time now.

Read More ⟶ ⋆ Miscellaneous

Implementing Focused Reading Mode on My Blog

May 9, 2022 — The other day, I was scrolling through my Twitter feed and I saw this tweet from Paco where he implemented what he calls “fuzzy reading mode” on his blog.

Read More ⟶ ⋆ Miscellaneous

The new Arr::join() method in Laravel 9.x

May 7, 2022 — A while back, I have written an article on how to convert arrays to human-readable lists in JavaScript. It’s a built-in feature using the Intl.ListFormat object that lets you do that.

Read More ⟶ ⋆ Laravel

Boolean toggle using useReducer hook in React.js

May 3, 2022 — Toggles are an integral part of a web application. Toggles usually have two states. Most of the time these would be of type boolean.

Read More ⟶ ⋆ React
« Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 Next »

Download my eBook

PHP 8 in a Nutshell

Newsletter

By subscribing, you agree with Revue’s Terms of Service and Privacy Policy.

Follow me everywhere

My Tiny YouTube Channel ⟶ YouTube Icon

Recently Published

  • Do cleanup from useEffect in React.js whenever possible NEW

  • Plural strings based on the count in Laravel

  • Detecting slow database operations in Laravel 9.x

  • Keeping track of the last value of state in React.js

  • How to validate JSON in Laravel

Top Categories

Laravel PHP JavaScript Miscellaneous CSS React Git Jekyll VS Code ➔
Home About Contact Categories Guestbook
Previous page Next page
Amit Merchant
About Contact Categories Guestbook
Copyright © 2022 — Amit Merchant