Posts

Written thoughts.

Learn ReasonML by building Tic Tac Toe in React (part II)

In the first part , we initialized our Tic Tac Toe game, tackled some of Reason’s basics and defined our variant types. We’ll continue where…
October 15, 201815 min read

Learn ReasonML by building Tic Tac Toe in React (part I)

You may have heard of Reason before. It’s a syntax on top of OCaml that compiles to both readable JavaScript code and to native and…
September 26, 201812 min read

Why am I building stuff in ReasonML and why should you?

Why should you give ReasonML a try? It’s a functional programming language that provides you with strong type system, powerful JavaScript…
September 11, 20187 min read

Higher-order components: the ultimate guide (part II)

In the first part , you learned how to write reusable higher-order components (HoC) and hopefully understood the ideas behind this pattern…
August 28, 201818 min read

Higher-order components: the ultimate guide (part I)

The maintainable component structure is a crucial prerequisite for a stable React application. You can achieve this by writing your code in…
August 18, 201820 min read

Why to use higher-order components anyway?

This is the final post from the post series about higher-order components. In the previous posts, we’ve uncovered the ideas behind the…
August 04, 20183 min read

Use Recompose for higher-order components' composition

In the previous post , you’ve seen some simple HoCs. However, this pattern is so powerful that it has been used in many React-based…

Composition of higher-order components

If you check our example from the previous post , you’ll see that we have a new problem. The component is no longer reusable since we…
May 14, 20188 min read

Functional or class-based higher-order components?

If you went through the previous posts, you should be able to write reusable higher-order components yourself and have a better…
April 11, 20184 min read

Make all the components reusable

In the previous posts, you’ve learned how to create a HoCs. Now, we’ll take a look at how to make them reusable. Making components reusable…
March 26, 20184 min read

Higher-order components as pancakes decorations? Why not?

In the previous post , you’ve learned how higher-order components (HoCs) work under the hood and how to define one yourself. Now, we’ll take…
March 12, 20183 min read

Introducing higher-order components

In the previous post , you’ve learned about the basic principles of functional programming (FP). Now, we’ll take a look at how to use these…
February 14, 20187 min read

Taste the principles of functional programming in React

This post was also translated to Korean The maintainable component structure is a crucial prerequisite for a stable React application. You…
January 31, 20186 min read

My first tech talk. A step outside my comfort zone that paid off!

Two years ago, I wrote my first JavaScript function. A year and half ago, I got my first job as a front-end developer. Three weeks ago, I…
November 21, 20178 min read

Is Vanilla JavaScript worth learning? Absolutely.

The purpose of this post is to emphasize the importance of JavaScript fundamentals for every front-end developer. I’m going to tell you why…
September 28, 20177 min read

I Stopped Being a Lawyer, Became a Developer and It's Awesome

Originally, I published this post more than half a year ago . After a couple of months in my first programming job, I decided to describe…
August 22, 20176 min read

Build a JavaScript calculator using a finite state machine

In my first post, I decided to look back at my programming beginnings. More than an year ago, I write a post where I described the…
August 15, 201716 min read

Welcome to my brand new blog

Hi everyone, my name is David Kopal and I’m a web developer focusing on modern web technologies such as React, and functional programming in…
August 12, 20171 min read
built with 💙 by David in 2019