Latest posts

Using React Children Prop With TypeScript

Jun 10, 2023

The React children prop makes it possible to reuse components across your application. You can think of the children prop as a slot where any type of content can be inserted into a specific container. The prop is often used when creating buttons or layout components. The concept is quite easy to grasp but if you are using TypeScript it can be a bit more difficult.

Read more →

Send Firebase Cloud Messages Using HTTP

Jul 09, 2022

Firebase Cloud Messaging is realy handy and it provides an easy integration when it comes to sending notifications to both iOS, Android and the web. In this article I will show you how to send messages to multiple users using simple HTTP and the Firebase Cloud Messaging REST API.

Read more →

How to Download Files Using Node.js and Axios

Feb 26, 2022

One of the most popular HTTP packages for Node.js is axios, and it's my favorite HTTP client when it comes to making network requests. I have used it many times before making simple requests returning JSON data, but when I used it to download files to my computer for the first time, I struggled a bit. In this post, I will show you how you can download files such as images or videos and store them on your computer.

Read more →

How to style a markdown blog post using Tailwind CSS

Jan 07, 2022

If you have used Tailwind CSS before you may have noticed that the framework do a CSS reset in order to keep the styling consistent throughout the page. This is awesome but if you are building a website where you need to display content from an external source such as a markdown file it can be a daunting task to style the different elements.

Read more →

How to use Google Analytics 4 with Gatsby

Aug 03, 2021

Google introduced version 4 of Analytics back in October 2020 and it was just recently that I noticed that my go-to plugin does not work anymore... In this small post I will show you how to get Google Analytics 4 working in your Gatsby project.

Read more →