Category: Javascript

How to wait for an element to render in the DOM

If you are reading this article, chances are you are looking for a way to trigger some code when an element becomes available on the page. This has been possible for a long time using hacks such as setTimeout or third libraries (usually built on top of setTimeout anyway). In this article, we are going…


How to solve Extraneous non-props attributes in Vue Js

If you are reading this blog post, chances are that you have encountered the above error and have no idea what it is and how to solve it. Luckily for you, I went through the pain and investigation so you do not have to. In this article, I am going to explain why the error…


How to use props with script setup in Vue 3

I have long debated if I needed to write this article, but since I have received the same question multiple times in the past few months, I guess this simple feature needs an explanation. No matter if you are an advanced Vue developer or if you are starting out when you will first use the…


How to use Teleport in VueJs 3

It has been a few months now since VueJs 3 has become the current version of this fantastic framework and with it, lots of new features. In this post, we will cover a feature called <teleport>. This feature was previously available in Vue 2 in a plugin called “portal-vue“. Thorsten Lünborg a core contributor of…


How to mock a server request in Chrome

If you are reading this article, then you probably have the same needs that I had when I first searched for this solution. I have decided to write this article to simplify your search and to write down the simple steps required to mock a server or API request in Chrome. TLTR; Chrome has the…