September 2021

How to create a UUID in JavaScript

How to create a UUID in JavaScript

  • September 30, 2021

Creating a globally unique identifier has always been a necessity in all programming languages and for some reason, JavaScript never had a way of doing it in the default spec. But that is changing now with the crypto API. We can now create a UUID in JavaScript. What is UUID/GUID?...

How to convert a React component to an image

How to convert a React component to an image

  • September 27, 2021

Sometimes you want to give the users the ability to download a part of the web application as an image. In that case, you want a way to convert a React component to an image. And it can be straightforward by using a third-party NPM package called html2canvas. Let us...

Specifying a node version in Repl.it

Specifying a node version in Repl.it

  • September 13, 2021

I was recently trying to use a later version of Node on Repl.it. I wanted to use a package that supported ES Modules, and the default version did not have support for it. So I wanted to use the latest node version in Repl.it. And found that there was no...

Accessing the clipboard in JavaScript

Accessing the clipboard in JavaScript

  • September 8, 2021

Developers are probably the laziest people on the planet. And of all the things, copy-paste is our favorite keyboard shortcut. But what is better than hitting ctrl + c? Having a button do the copying for you! And that is now possible using an asynchronous version of the clipboard API...