Marek RozmusStyling Storyblok Richtext with TailwindHow to implement custom richtext schema4 min read·Apr 7, 2024----
Marek RozmusStyling radio button with TailwindReact Radio button component (styled) from scratch8 min read·Mar 23, 2024----
Marek RozmusResponsive background with CSS and ReactHow to create reusable React component to set responsive background image on DOM element.4 min read·Feb 18, 2024----
Marek RozmusMocking fs and glob modules with Jestto test scripts that read and write files to disk.4 min read·Dec 6, 2023----
Marek RozmusNextJS and React hydration problem on productionTL;DR: The problem was Cloudflare’s minification service.3 min read·May 18, 2023----
Marek RozmusStyling checkbox with TailwindReact Checkbox component styling6 min read·Mar 25, 2023--3--3
Marek RozmusMocking local storage with JestHow should we test the component that is using local storage?2 min read·Oct 15, 2022----
Marek RozmusMocking setTimeout with JestThe title of this post may be a little misleading as we won’t write any mocks but we need to use some functionality that Jest provides…3 min read·Aug 6, 2022--2--2
Marek RozmusJest mock and spy — mockClear vs mockReset vs mockRestoreWhen writing unit tests we need to make sure that every test is independent of others. When using shared mocks/spies we need to remember…4 min read·Feb 20, 2022--3--3
Marek RozmusReact and dual/multi color SVG iconLately I was implementing new UI in the project based on Figma design. The design had dual color icons for ticks and errors.2 min read·Jan 7, 2022----