Clean Architecture and React-Query? This article shows how both can fit together.
Ever wondered where to put all the small functions that often end up in utility files? The domain layer might be the answer.
Business logic can bloat React components and make them difficult to test. In this article, we discuss how extracting them to hooks in combination with dependency injection can improve maintainability and testability.
Logic inside your React app’s API layer can be difficult to test. In this article, we discuss how singleton services combined with dependency injection can improve testability.
Passing data structures of API responses directly to the UI code often isn’t ideal. In this article, we isolate the React components from the server by separating data transfer objects (DTOs) and domain entities.
Mixing transformations of API data and UI code quickly leads to messy and unmaintainable code. In this article, we take a step towards a cleaner React architecture by extracting data transformations to an API layer.
Mixing API and UI code quickly leads to messy and unmaintainable code. In this article, we take a step towards a cleaner React architecture by extracting fetch functions to an API layer.
Discover the foundational steps towards a clean React architecture by centralizing API requests with a shared API client. Learn how to streamline your codebase for maintainability and scalability.
React’s useEffect hook can lead to tricky situations. If you’re not careful it can cause unnecessary executions of the effect or even infinite re-renders. Especially when using objects as dependencies. Here are 4 approaches that avoid unnecessary executions.
It’s not easy to spot! In this code review we see how two components are tightly coupled leading to mixed responsibilities. A better function name and some small changes lead to a clear separation of concerns.
In this series, you confront real-world React mysteries. It's an opportunity to test your skills and...
In today's increasingly digital world, a significant number of junior developers are vying for...
As an (aspiring) Junior React developer it’s hard to understand if you’re code is any good and how...
useState is the React hook that you use most often. It's everywhere. But so are some common mistakes....
Learning TypeScript is THE best investment. Here's everything you need to get started. Follow the story of a nasty CTO called Pat to learn the basics of TS and React.
Never seen a linked list in frontend JavaScript code? Me neither. But here are real-world examples of data structures Map, Set, Stack, Queue, and Tree.
As an (aspiring) Junior React developer it’s hard to know if your code is any good and how to improve it. In this session we review & refactor an interesting problem.
There are many ways to conditionally render in React. But what are the best options regarding readability? Here's when to use early returns, ternary, &&, and others.
Creating data types manually is tedious and error-prone. Use the OpenAPI docs of your REST API to generate and keep them in sync automatically. Here's how.
Mixing API requests with UI code creates unmaintainable spaghetti. A layered approach can help. Creating an API layer isn't difficult if you follow this guide.
Using simple click handlers to update API data seems easy but quickly gets out of hand. Let's build a snappy data-driven component with the react-query as example.
Data fetching = useEffect? In production apps that quickly gets out of hand. See why and how the pros use libraries for data-driven features with great UX.
Live coding interviews are scary! But approach them right and you don't even need to finish the task. This intimidating situation is in fact an opportunity.
For my posts on dev.to I always want to have a Table of Contents. Until now I did that manually which was a lot of work. So I created a small JS snippet that you can use as bookmarklet
Testing your React apps gives you a safety net. But getting started is cumbersome. Cypress makes it relatively easy. This in-depth guide shows you how based on an example app.
Debugging a React app can be a painful process. Speed up your workflow with the VS Code debugger and decrease friction. Good news: It's super simple.
Looking at an advanced React project is confusing. What are all those folders and ".whatever" files? This video tour shows how the code and tools work together.
Build A Pixel-Perfect Header Based On Figma Designs. Test your skills and prepare for job interviews by solving these challenges. They are based on a professional codebase and Figma designs.
Test your CSS, React state management, API, and debugging skills in realistic scenarios & Learn how to approach coding challenges in React job interviews.
Senior developers aren't always blazing fast. They use Google all the time. They struggle! Here are some examples that might ease your imposter syndrome as a Junior developer.