bits&pieces by pekala

Pieces

Vintage photo of the The Jelling Stone, a rune covered rock in Jelling, close to Billund where I live
Published on Jul 10th, 2020
~ 3 min read
Getting to Play with New Toys
Or How I Learned to Stop Worrying and Love the Theme UI

It wouldn't be a new blog of a frontend developer without trying a few new libraries

Picture of a fish from an old botanical atlas
Published on May 13th, 2019
~ 14 min read
Discovering Patterns with React Hooks

Introduction of React hooks unlocked new avenues for elegant abstractions. In this piece I describe a pattern for building globally accessible widgets, like toast notifications, using hooks and the Context API.

Drawing of a boy working in a woodshop, with a bunch of tools around him
Published on May 3rd, 2017
~ 10 min read
Frontend Development Environment as a Package
Or When to Build Your Own CRA

Frontend tooling can be tricky to maintain. In this piece I discuss pros and cons on building a wrapper around your frontend toolchain.

Drawing of a physics experiment with three test tubes, from an old science book
Published on Feb 18th, 2017
~ 10 min read
Integration Tests in Redux Apps
Low Effort, High Value

Testing of Redux based apps can be hard to do efficiently. In this piece I present an approach that can give you a lot of confidence in your app without having to make big investments in test infrastructure.