React Job Simulator
Blog

React-Query

Path To A Clean(er) React Architecture (Part 8)

Clean Architecture and React-Query? This article shows how both can fit together.

Johannes Kettmann

Johannes Kettmann

July 19, 2024

Domain Logic

Path To A Clean(er) React Architecture (Part 7)

Ever wondered where to put all the small functions that often end up in utility files? The domain layer might be the answer.

Johannes Kettmann

Johannes Kettmann

July 5, 2024

Business Logic Separation

Path To A Clean(er) React Architecture (Part 6)

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.

Johannes Kettmann

Johannes Kettmann

June 21, 2024

Infrastructure Services & Dependency Injection For Testability

Path To A Clean(er) React Architecture (Part 5)

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.

Johannes Kettmann

Johannes Kettmann

June 7, 2024

Domain Entities & DTOs

Path To A Clean(er) React Architecture

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.

Johannes Kettmann

Johannes Kettmann

May 24, 2024

API Layer & Data Transformations

Path To A Clean(er) React Architecture

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.

Johannes Kettmann

Johannes Kettmann

May 10, 2024

API Layer & Fetch Functions

Path To A Clean(er) React Architecture

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.

Johannes Kettmann

Johannes Kettmann

May 8, 2024

A Shared API Client

Path To A Clean(er) React Architecture

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.

Johannes Kettmann

Johannes Kettmann

May 8, 2024

React useEffect and objects as dependency

4 approaches to avoid unnecessary executions

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.

Johannes Kettmann

Johannes Kettmann

March 19, 2024

Unraveling A Tightly Coupled Component

React Code Review

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.

Johannes Kettmann

Johannes Kettmann

March 8, 2024

The Mysterious Case of the Untracked Clicks

React Riddles

Embark on a thrilling debugging adventure in 'React Riddles', where elusive icons play hide-and-seek with our tracking events. Can you solve the puzzle?

Johannes Kettmann

Johannes Kettmann

July 21, 2023

You got the job! Now what?

Strategies to pass the probation period

Master your first tech job probation period! Explore strategies like preparation, clear communication, and maintaining the right balance between help and independence.

Johannes Kettmann

Johannes Kettmann

May 26, 2023

Reduced Complexity With A Single Source Of Truth

Refactoring A Junior’s React Code

How can you know if your code is any good? Learn from common mistakes! Follow this code review & refactoring to use a Single Source Of Truth in favor of duplicate state.

Johannes Kettmann

Johannes Kettmann

January 6, 2023

Avoid These Common Pitfalls Of React useState

Advice for Junior Developers

useState is the easiest and most common React hook. But so are some of its problems. Become aware of them and use the exercises on this page to improve your own code.

Johannes Kettmann

Johannes Kettmann

December 12, 2022

Minimal TypeScript Crash Course For React

With Interactive Code Exercises

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.

Johannes Kettmann

Johannes Kettmann

October 6, 2023
Dev.to111 Reddit383

Data Structures In Frontend JavaScript In The Real World

With React Code Examples

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.

Johannes Kettmann

Johannes Kettmann

November 24, 2022
Dev.to204 Reddit247

43% Less Code With A Better Data Structure

Refactoring A Junior’s React Code

As an (aspiring) Junior React developer it’s hard to know if you’re code is any good and how to improve it. In this session we review & refactor an interesting problem.

Johannes Kettmann

Johannes Kettmann

November 20, 2022
Dev.to244 Reddit503

Conditional Rendering In React

With A Focus On Readability And Clean Code

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.

Johannes Kettmann

Johannes Kettmann

November 4, 2022

React & REST APIs: End-To-End TypeScript Based On OpenAPI Docs

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.

Johannes Kettmann

Johannes Kettmann

October 28, 2022

Separate API Layers In React Apps

6 Steps Towards Maintainable Code

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.

Johannes Kettmann

Johannes Kettmann

October 31, 2022
Dev.to105

REST APIs - How To Mutate Data From Your React App Like The Pros

Based On An Advanced Example

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.

Johannes Kettmann

Johannes Kettmann

October 21, 2022
Reddit52

REST APIs - How To Connect Your React App Like The Pros

Two Approaches Including A Detailed 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.

Johannes Kettmann

Johannes Kettmann

October 16, 2022
Dev.to32 Reddit130

How To Approach A React Pair Programming Interview

Not Only The Tech Skills Count

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.

Johannes Kettmann

Johannes Kettmann

September 30, 2022

How To Debug React Apps With VS Code

Boost Your Debugging Productivity

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.

Johannes Kettmann

Johannes Kettmann

May 12, 2023
Dev.to588 Reddit38

Codebase Tour Through An Advanced React Project

How The Pieces Fit Together

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.

Johannes Kettmann

Johannes Kettmann

September 9, 2022

Real-World React Coding Challenges

For Your Interview Preparation

Test your CSS, React state management, API, and debugging skills in realistic scenarios & Learn how to approach coding challenges in React job interviews.

Johannes Kettmann

Johannes Kettmann

May 8, 2023

Testing React Apps In 2023 With Cypress

An In-Depth Guide For Beginners

Testing your React apps gives you a safety net. But getting started is cumbersome. Cypress makes it relatively easy. This guide shows you how with a detailed example.

Johannes Kettmann

Johannes Kettmann

April 26, 2023
Reddit290

Ease Your Imposter Syndrome As A Junior Dev

Experienced Programmers Struggle As Well

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.

Johannes Kettmann

Johannes Kettmann

October 10, 2022
Dev.to57

How Professional (React) Developer Teams Plan & Estimate Features

Teams ideate, design, plan, estimate, and prioritize features before they start the implementation. Here is a typical feature planning process that you’ll likely encounter on your first job.

Johannes Kettmann

Johannes Kettmann

October 10, 2022
Dev.to180 Reddit64

Continuous Integration Pipelines with GitHub Actions for (React) Developers

It’s easy to introduce bugs into production code. Professional teams use Continuous Integration pipelines to prevent this. Learn how to build your own with GitHub Actions.

Johannes Kettmann

Johannes Kettmann

March 19, 2022

Professional Git Workflow & GitHub Setup for (React) Developers

Solo devs work on the main branch. Teams don’t. They use professional workflows like Trunk-Based Development. This guide shows how you can too.

Johannes Kettmann

Johannes Kettmann

October 10, 2022
Dev.to142

How to set up a React project (the professional way)

This guide explains how to create a new React app using a popular tech stack: Next.js, TypeScript, ESLint, Prettier, styled-components, Cypress, Storybook.

Johannes Kettmann

Johannes Kettmann

October 10, 2022
Dev.to457 Reddit153

Evolution of a React folder structure and why to group by features right away

Screaming Architecture

How do different folder structures compare? This is a journey of a growing codebase with a feature-driven folder structure at its end.

Johannes Kettmann

Johannes Kettmann

June 20, 2023
Dev.to981 Reddit84

Most Popular React Tech Stack in 2023

Based on Data

The React ecosystem is huge so it's hard to keep an overview. Based on data here is a list of the most popular React libs used in 2022.

Johannes Kettmann

Johannes Kettmann

April 26, 2023
Dev.to81 Reddit176

Don't waste your time on a (React) portfolio website

This survey among 60+ hiring managers reveals

Junior web developers think they need a portfolio website to get a job. But do hiring managers even care? The results of this survey are clear and give better alternatives.

Johannes Kettmann

Johannes Kettmann

October 10, 2022
Dev.to326 Reddit457

How to build a React portfolio that gets you a job

3 project ideas + a guide

If you want a job build your portfolio projects like a professional React developer. This guide explains how and provides 3 inspiring ideas.

Johannes Kettmann

Johannes Kettmann

April 26, 2023
Dev.to1532