2018.08.05

Dual-mode React components with getDerivedStateFromProps

Over the past year React received a few new features that make developing apps easier. One of them is the getDerivedStateFromProps method, a replacement for componentWillReceiveProps. I don't need it 95% of the time, but when I do, I follow this pattern...
Read more
2018.05.01

Solving z-index with styled-components

Follow these simple steps if you don't want to guess the right z-index value ever again.
Read more
2017.07.18

Code highlighting and bundle optimizations

In this post I'll describe my experience with some of the existing code highlighting tools. I'll also add something extra about removing libraries from the script bundle while retaining their functionality.
Read more
2017.06.25

I made a thing: babel-plugin-jsx-svg-inject

Today I released version 5.0.0 of the babel-plugin-jsx-svg-inject plugin. Here's how it came to be.
Read more
2017.06.04

Using .babelrc.js today

You don't have to wait for Babel 7 in order to use the full power of JS for configuration! In this post I suggest a way of configuring that will require a minimum amount of work when upgrading to Babel 7.
Read more
2017.05.13

Color as a background image

Hi, welcome to my blog! I will be writing mostly about the front-end stuff, JS in general, and also a bit about what I do outside of work. I like to eat outside sometimes, so you can expect some posts with photos about places to eat in Warsaw. In this post, however, I won't be writing about food.
Read more