Skip to content

Hey, I'm Sandro

I'm an experienced Frontend Developer based in Switzerland. I love coding, writing and cats 🐈

  • 4 min read

    In this article we'll learn how to write component stories in uncontrolled and controlled mode, that properly work together with args and controls in Storybook.

  • 6 min read

    Polymorphic React components are very common and useful, but also tricky to implement and limited in what type-safety they provide. We'll talk about the problems and see an alternative approach using an asChild prop.

  • 5 min read

    Reducers are not only useful for global state management. They can also be used for local component state. And compared to plain useReducer() we can reduce boilerplate code by adapting the API of modern reducer libraries like Redux Toolkit (RTK).