Juhana Jauhiainen

Juhana Jauhiainen @juhanakristian

About: A full stack developer experienced with React, Node.js, Django and PostgreSQL

Joined:
Apr 22, 2020

Juhana Jauhiainen
articles - 33 total

How to search files from Azure Blob Storage using Python

Searching for files using index tags is a common use case but the Azure documentation can be quite...

Learn More 5 0Dec 13 '22

What are template literal types in TypeScript?

Before diving into template literal types, we first need to discuss string literal types In...

Learn More 7 0Apr 21 '22

How to implement useMediaQuery hook in React

What are Media Queries? Media Queries are a CSS feature that can be used to conditionally...

Learn More 29 3Mar 13 '22

Basics of React server-side rendering with Express.js

If you want to develop SEO friendly and fast websites with React, you have two choices: server-side...

Learn More 82 6Feb 5 '22

Use a Model Manager to filter queryset by default in Django

How can you filter a queryset by default so that no matter where you use the model, the filter will...

Learn More 5 0Jan 20 '22

Should you use React.FC to type your components?

TLDR: No. You should probably not. const Dialog: React.FC = ({children}) => { return ( ...

Learn More 9 1Dec 7 '21

Why you should use the URL to store state in your application

It seems we have, in the web community, collectively forgotten the role of the URL in storing the...

Learn More 78 3Nov 28 '21

What are HTTP cookies

A HTTP cookie is a small piece of data that a server sends to a user's web browser. The browser may...

Learn More 6 1Oct 28 '21

How to make TypeScript understand Array.filter

If you've ever used Array.filter to filter a list to certain type of items, you've probably been hit...

Learn More 36 2Oct 4 '21

Why Docker is eating your disk space

I learned recently, in less than ideal circumstances, that Docker doesn't do any log rotation by...

Learn More 67 0Sep 23 '21

How to type an object with exclusive-or properties in TypeScript

How can we define a type for an object, which has some required attributes and some attributes, of...

Learn More 11 0Sep 12 '21

Advanced Django queries

Django Framework comes with a powerful ORM and query capabilities built-in. If you're only familiar...

Learn More 22 1Jul 27 '21

Convert an array to a map in JavaScript

Sometimes it's useful to convert a array to a map for convenience or performance reasons. But how can...

Learn More 5 1Jul 6 '21

Hidden gems of the Chrome DevTools, Part 2: CSS tools

In the last article on the series we looked into some features of the Chrome Console API. This time...

Learn More 6 0Jun 25 '21

Creating layouts with CSS grids

Grids are a powerfull feature of CSS but they can be a little overwhelming at first. There are rows,...

Learn More 6 0Jun 16 '21

Create a retro text effect with CSS

In this article, we're going to create an 80's style text effect with CSS. The effect uses multiple t...

Learn More 7 0Apr 13 '21

Hidden gems of the Chrome DevTools, Part 1: The Console API

Debugging, or finding the reason why your code doesn't work, is one of the most important skills a so...

Learn More 41 0Apr 3 '21

Setup Spectron and Testing Library to effectively test your Electron.js application

In this article, we will setup Spectron and use Testing Library with WebdriverIO to test an Electron....

Learn More 13 0Mar 14 '21

How using Testing Library will help you improve the accessibility of your application

Testing Library is a JavaScript testing framework that focuses on testing the way the application is...

Learn More 24 2Feb 25 '21

Mocking GraphQL APIs with Mock Service Worker

Mock Service Worker (MSW) is a library for mocking, or faking, a backend API. This is extremely usefu...

Learn More 8 1Feb 14 '21

Creating a VS Code theme

Ever wanted to create a theme for VS Code? It's simpler than you'd think but the process is a bit lab...

Learn More 11 1Jan 26 '21

A Tailwind CSS plugin for adding gradient masks

Some time ago I added excerpts to my blog. A small sample of the full blog text is now shown on the f...

Learn More 11 1Nov 9 '20

Use useReducer to manage complex state

useReducer is a React Hook which helps you manage complex state with a simple API. The hook takes a r...

Learn More 18 0Nov 5 '20

Manage React state with the useContext hook

DISCLAIMER: This post is based on state management ideas presented by Kent C. Dodd’s in Application s...

Learn More 6 0Oct 14 '20

Make custom marker displaying users location and direction with react-native-maps on iOS

NOTICE: This post is about showing a custom location and direction indicator with react-native-maps o...

Learn More 6 0Sep 30 '20

What is React Strict Mode?

React Strict Mode is a tool, which comes with React, for detecting possible issues and problems in yo...

Learn More 20 0Sep 28 '20

Access DOM element in a child component in React

Sometimes we need access to a DOM element which is contained by another React component. If we try to...

Learn More 7 0Aug 18 '20

Customize Django admin with list_display property

One of the great "batteries included" features Django has, is the automatically generated admin panel...

Learn More 7 0Jul 25 '20

Using namedtuple to create simple data objects in Python

Python standard library has a handy collection factory function called namedtuple, which can be used...

Learn More 6 1Jun 29 '20

Introduction to relative CSS units

With CSS you can use absolute units like the familiar px, pt or relative units like em and rem . Abso...

Learn More 3 2Jun 22 '20