The way to write your code

Undo commit before push in Git - Clue Mediator

Undo commit before push in Git

Today we will show you how to undo commit before push in Git remote repository. We’ll provide you the three different ways to undo commit which has not been pushed....

Sort an array by Date in JavaScript - Clue Mediator

Sort an array by Date in JavaScript

In this article, we’ll show you how to sort an array by date in JavaScript. When you are working with an array of objects that contains a date field and...

Resize an image using the GD library in PHP - Clue Mediator

Resize an image using the GD library in PHP

Today we will explain to you how to resize an image using the GD library in PHP. When we are working with the gallery or individual images to display on...

Export data to CSV in React - Clue Mediator

Export data to CSV in React

In this react article, we’ll show you how to export data to CSV in React using the package. When we are working with a table we may need to export...

React multi select listbox component - Clue Mediator

React multi select listbox component

React multi select listbox component is nothing but a list of items where we can select multiple options from the list. We have written an article to Implement dropdown in...

Remove HTML tags from a string in PHP - Clue Mediator

Remove HTML tags from a string in PHP

In this short article, we will explain to you how to remove HTML tags from a string in PHP. Sometimes we need to get only the content part without HTML...

Get location from an IP address in PHP - Clue Mediator

Get location from an IP address in PHP

Today we’ll show you how to get location from an IP address in PHP. In this article, we will use the third party free API to get the geolocation (like...

What’s new in React Router version 6 - Clue Mediator

What’s new in React Router v6

React router is a very huge library to implement routing in React. Today we’ll talk about the new features of the React Router v6. Right now, it’s in beta. We’ll...

Convert XML to JSON using JavaScript - Clue Mediator

Convert XML to JSON using JavaScript

Today we’ll show you how to convert XML to JSON using JavaScript. In this article, we will show you how to convert XML strings to JSON using the xml2json script....