The Most Popular React Tech Stack in 2022
Tags: react, career, webdev, javascript
Published: 2022-02-11 12:52:31

---
title: The Most Popular React Tech Stack in 2022
published: true
description: 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.
tags: react, career, webdev, javascript
canonical_url: https://profy.dev/article/react-tech-stack
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6mdscvz8afynml7mfka.png
series: Professional React Development
 ---

If you want to start a career as a React developer you're faced with a difficult decision: What libraries and tools should you use for your next project? The React ecosystem is huge. There's always a new hype and way too many contradicting opinions. How confusing...

The decision is simple though: **focus on the most popular libraries and tools.** Likely these are also widespread in real-world projects. This way you'll increase the chances of your tech stack matching the requirements of a job. 

The only problem is: What is this tech stack? You probably guessed it. The answer is on this page.

This article gives you a list of the most important libraries and tools used in the React community. A somewhat objective list. Not based on a single opinion but based on download stats, surveys, and community discussions.

## Table of Contents

1. [Most popular React libraries](#1-most-popular-react-libraries)
    - [Next.js (as React framework)](#nextjs-as-most-popular-react-framework)
    - [Redux (as state management library)](#redux-as-most-popular-react-state-management-library)
    - [react-query or Apollo (as fetching library)](#reactquery-or-apollo-as-popular-react-fetching-library)
    - [React Hook Form (as form library)](#react-hook-form-as-most-popular-react-form-library)
    - [styled-components or MUI (for styling)](#styledcomponents-or-mui-as-most-popular-react-ui-library)
2. [Most popular developer tools used with React](#2-most-popular-developer-tools-used-with-react)
    - [Prettier (for code formatting)](#prettier-for-code-formatting)
    - [ESLint (to catch problematic patterns)](#eslint-to-catch-problematic-patterns)
    - [TypeScript (for type checking)](#typescript-for-type-checking)
3. [Most popular React testing frameworks and tools](#3-most-popular-react-testing-frameworks-and-tools)
    - [Jest (as testing framework)](#jest-as-most-popular-react-testing-framework)
    - [React Testing Library (for integration tests)](#react-testing-library-as-most-popular-react-integration-testing-lib)
    - [Cypress (for end-to-end tests)
](#cypress-as-most-popular-endtoend-testing-tool)
    - [Storybook (for UI testing and documentation)](#storybook-as-most-popular-react-ui-testing-and-documentation-tool)
4. [Most popular React developer workflows](#4-most-popular-react-developer-workflows)
    - [Trunk Based Development (Git workflow for collaboration)](#trunk-based-development-git-workflow-for-collaboration)
5. [Summary: An advanced React learning path](#summary-an-advanced-react-learning-path)
    1. [Learn Trunk Based Development](#1-learn-trunk-based-development)
    2. [Use Next.js](#2-use-nextjs)
    3. [Optional: Use TypeScript](#3-optional-use-typescript)
    4. [Use ESLint](#4-use-eslint)
    5. [Use Prettier](#5-use-prettier)
    6. [Use styled-components or MUI](#6-use-styledcomponents-or-mui)
    7. [Write tests with Cypress](#7-write-tests-with-cypress)
    8. [Optional: Use Redux](#8-optional-use-redux)
    9. [Optional: Use Storybook](#9-optional-use-storybook)

## A quick note on methodology

The main data source used in this article is weekly download stats from npm.

Admittedly, this is not the ideal data source. Most downloads are caused by CI pipelines. But It's unclear who contributes to what extent. Some teams have CI that downloads fresh packages frequently. Others use caches and rarely need to download anything from npm.

Nevertheless, download stats are one of the most objective and fine-grained measures for popularity that we currently have. Especially when we take them to compare different packages relative to each other. 

In combination with other data sources like the State of JS survey, community polls, or discussions we get a solid overview of the most popular choices in the React ecosystem.

## 1. Most popular React libraries

When you look around in online communities you can frequently see questions like 

- “Next.js vs Gatsby vs Remix? Which one should I use for my project” or
- “Should I use Redux in my project?” with different opinions ranging from “Just use Context” to “Zustand is much better”.

This can be super confusing. So in this first section, we’ll get an overview of the most important libraries for different use-cases like state management, forms, or styling.

[![Get on the waitlist for an upcoming course on professional react development](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kds0dmjuuzzqmtl5b0p7.png)](https://profy.dev/waitlist?utm_source=rts-1&utm_medium=dev.to)

### [Next.js](https://nextjs.org/) (as most popular React framework)

![nextjs-vs-gatsby-vs-remix](https://media.graphcms.com/wk7M9iuaRIm2a4siPYlW)
*Source: [npmtrends.com](https://www.npmtrends.com/next-vs-gatsby-vs-remix), Jan 2022*

We can see that Next.js is a clear choice. Gatsby seems to be stagnating while Remix (despite the current hype) is still in its very early shoes. It'll probably be hard to find a job where Remix is used in the foreseeable future.

It's interesting to note the high weekly download numbers for Next.js with 2M. Compare this to 14M weekly downloads of React itself. The point is, that Next has become the go-to framework for building React apps.

That's not a surprise. Next.js offers many benefits like server-side rendering or code splitting without complicated a Webpack setup. It is very mature and thus safe to use in production.

This comment from a [discussion about starting a project with Next.js vs Create-React-App](https://www.reddit.com/r/reactjs/comments/mcukf9/comment/gs5m6tx/) says it all:

![always-use-nextjs.png](https://media.graphcms.com/Jm8Ir373Qca5T0yV7z8N)

### [Redux](https://redux.js.org/) (as most popular React state management library)

Just a few years ago the standard for state management was without a doubt [Redux](https://redux.js.org/). Nowadays it seems that more and more people complain about it and recommend other libraries like Zustand or Jotai.

![redux-vs-mobx-vs-zustand-vs-xstate-vs-jotai.png](https://media.graphcms.com/sWGzqSvZSh6voARhXYKg)
*Source: [npmtrends.com](https://www.npmtrends.com/redux-vs-xstate-vs-@reduxjs/toolkit-vs-mobx-vs-zustand-vs-jotai), Jan 2022*

But the download stats paint a different picture. Redux is by far the most used state management library out there. Only the native Context API seems to get close as shown by [this poll](https://www.reddit.com/r/reactjs/comments/r12i8v/react_state_management/).

![redux-as-industry-standard-for-state-management.png](https://media.graphcms.com/FPt4SOzzQDC2y7MC9TQt)

The comments below the poll also indicate that Redux is especially prevalent in the professional world.

In recent years there have been more and more complaints about Redux as you can see in many discussions and the satisfaction ratio in the [State of JS 2020 survey](https://2020.stateofjs.com/en-US/technologies/datalayer/#datalayer_experience_ranking):

![satisfaction-ratio-state-management-libs.png](https://media.graphcms.com/qmAJECHvQ3aSWZuIg29K)

Many of the negative comments stem from older versions of Redux. Nowadays [it’s recommended](https://redux.js.org/introduction/getting-started#redux-toolkit) to use [Redux Toolkit](https://redux-toolkit.js.org/) (RTK) since it’s much easier to set up and removes a lot of boilerplate. You can even combine it with [Redux Toolkit Query](https://redux-toolkit.js.org/rtk-query/overview) for data fetching.

Adoption of RTK seems to increase quickly as it's the second most downloaded package in the chart above. It looks like 1 out of 6 websites built with Redux uses RTK now.

### [react-query](https://react-query.tanstack.com/) or [Apollo](https://www.apollographql.com/docs/react/) (as popular React fetching library)

![apollo-vs-react-query-vs-swr-vs-react-relay.png](https://media.graphcms.com/neXqNeyORDudQkYuYWrC)
*Source: [npmtrends.com](https://www.npmtrends.com/@apollo/client-vs-react-query-vs-swr-vs-react-relay), Jan 2022*

According to these stats Apollo seems to be the most popular choice when it comes to data fetching. There’s even another 1M weekly downloads of the legacy version `apollo-client` that I omitted here.

The problem with Apollo: It’s built for GraphQL APIs. 

That’s where react-query comes in. It’s a relatively new library that has gained momentum quickly. It’s very popular among developers and you can use it to connect to any kind of API. It handles many common use-cases like caching or retries.

Since react-query is the more versatile option, I’d recommend it as the go-to library for data fetching. If you use a GraphQL though, have a look at Apollo.

**There’s a notable third option that makes sense if your app already uses Redux Toolkit: [RTK Query](https://redux-toolkit.js.org/rtk-query/overview).** It has similar features to react-query and is included in the `@redux/toolkit` package. Because it’s not a standalone package the download numbers are not shown in the above graph and it’s hard to tell how widely it’s used.

To summarize let me refer to an [comment by Mark Erikson](https://www.reddit.com/r/reactjs/comments/r949fe/comment/hn9vpgt/) (one of the maintainers or Redux):

> I would recommend **not** hand-writing data fetching code no matter what you're using. If you're already using Redux, you should probably use RTK Query. If you're using just React, you should probably look at React Query.
> 

### [React Hook Form](https://react-hook-form.com/) (as most popular React form library)

![formik-vs-react-hook-form-vs-final-form-vs-redux-form.png](https://media.graphcms.com/ayK1XNcTHuDpvukpZjXw)
*Source: [npmtrends.com](https://www.npmtrends.com/formik-vs-react-hook-form-vs-final-form-vs-redux-form), Jan 2022*

Based purely on the download numbers the most widespread form libraries are [Formik](https://formik.org/) closely followed by [React Hook Form](https://react-hook-form.com/). But it's obvious that the latter is quickly increasing adoption.

Judging from the love it gets in [this](https://www.reddit.com/r/reactjs/comments/le87k0/react_hook_form_v7_preview/) and other discussions React Hook Form is a clear choice.

![react-hook-form-as-industry-standard-for-react-forms.png](https://media.graphcms.com/xTlFxx1Q7a8HKQJDlphA)

Note: you don't necessarily need a form library. Many simple forms can be handled without any state management as [Swyx](https://www.swyx.io/no-controlled-forms/) or [Josh W. Comeau](https://twitter.com/JoshWComeau/status/1330302183431147526) suggest.

### [styled-components](https://styled-components.com/) or [MUI](https://mui.com/) (as most popular React UI library)

According to [this poll](https://www.reddit.com/r/reactjs/comments/ry4tt6/at_your_job_do_you_use_a_component_lib_which_one/), roughly half of the professional world uses component libraries and the other half writes custom CSS (the lower two bars combined).

![component-libraries-vs-custom-styles.png](https://media.graphcms.com/lZ0EbhCPRte2GOMjadoT)

Some developers complain that component libraries like MUI aren’t flexible enough while others state that it doesn’t make sense to reinvent the wheel. But whether a product is built with a component library is always a trade-off between custom design and cost of implementation/maintenance.

According to the comments below the poll, the most used libraries seem to be styled-components (for custom styles) and MUI (as component library). Let’s compare that with the download numbers.

First the two most popular CSS-in-JS solutions:

![styled-components-vs-emotion.png](https://media.graphcms.com/ITiGWAg8SDCCyDAht6xi)
*Source: [npmtrends.com](https://www.npmtrends.com/styled-components-vs-@emotion/react), Jan 2022*

For custom styles, CSS-in-JS solutions have been on the rise for some time with [styled-components](https://styled-components.com/) being the most popular and Emotion quickly picking up. Both are very similar so it doesn't really matter which one you pick. If you don’t want to create all components from scratch you can use custom styles in combination with a headless component library like [Headless UI](https://headlessui.dev/).

![material-ui-vs-react-bootstrap-vs-chakra-ui-vs-mantine.png](https://media.graphcms.com/N4yDzOl3R2W4jeu7OwlI)
*Source: [npmtrends.com](https://www.npmtrends.com/@material-ui/core-vs-react-bootstrap-vs-@mui/material-vs-@chakra-ui/react-vs-@mantine/core), Jan 2022*

Among component libraries [MUI](https://mui.com/) (former Material UI) seems to be the most widespread. Note that you need to add the green and the yellow lines because of the recent name change from Material UI to MUI.

If you have to decide between learning CSS or a component library I’d personally follow [this commenter](https://www.reddit.com/r/reactjs/comments/r9hh0b/comment/hnbw953/):

![recommendation-to-learn-CSS.png](https://media.graphcms.com/AojGVRlzRCibRA2hYBG0)

[![Get on the waitlist for an upcoming course on professional react development](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uxhq69a1fggmo83gs1wy.png)](https://profy.dev/waitlist?utm_source=rts-2&utm_medium=dev.to)

## 2. Most popular developer tools used with React

Most professional teams use tools in their IDEs and CI pipelines to catch bugs early on and to increase code quality/readability. Here are the download numbers of the most important tools.

![typescript-vs-prettier-vs-eslint.png](https://media.graphcms.com/PS6MyjKfQqaEilpJjNHn)
*Source: [npmtrends.com](https://www.npmtrends.com/typescript-vs-prettier-vs-eslint-vs-eslint-config-airbnb-vs-tslint-vs-jshint-vs-standard), Jan 2022*

As you can see TypeScript, Prettier, and ESLint are all on a similar level regarding the download numbers. It’s important to note that these tools are used throughout the JS community and are not restricted to the React community.

I’ll quickly explain each tool in the following sections.

### [Prettier](https://prettier.io/) (for code formatting)

[Prettier](https://prettier.io/) is an opinionated code formatter. It’s been around for years and is widely used. As you can see in this screenshot of [the Prettier playground](https://prettier.io/playground/) you can write really ugly code and Prettier will make it look nice.

![prettier-example.png](https://media.graphcms.com/n9AEuG4OSuay3pm9ifsm)

Using a code formatter ensures that every developer on the team sticks to a certain code style. That results in more coherent code and improves readability.

Since it’s easy to use I’d suggest you adopt it in your personal projects as well. You can [attach it to your editor’s “Format on save” functionality](https://www.robinwieruch.de/how-to-use-prettier-vscode/).

### [ESLint](https://eslint.org/) (to catch problematic patterns)

A linter like [ESLint](https://eslint.org/) statically analyzes your code, detects problematic patterns, and enforces best practices. It can warn you that your code contains bugs before you release it. Like in this example:

![eslint-example.png](https://media.graphcms.com/wi3zZDq6SZikvswtW96U)

ESLint is very customizable. But it’s better to follow a standard by using a popular preset. 

Which preset to use? Airbnb was long the default but [many feel it’s too prescriptive](https://www.reddit.com/r/reactjs/comments/rwvhxf/comment/hrgx5hx/). Rather use the default `eslint:recommended` settings in combination with Prettier.

![eslint-preset-recomendation.png](https://media.graphcms.com/4VzJnaEaRxGNkBrZjTI6)

### [TypeScript](https://www.typescriptlang.org/) (for type checking)

[TypeScript](https://www.typescriptlang.org/) has seen vast adoption in the professional world. A good indicator is its usage ratio in the [State of JS 2020 survey](https://2020.stateofjs.com/en-US/technologies/javascript-flavors/#javascript_flavors_experience_ranking): 78% of the participating developers have used TS.

![usage-ratio-typescript.png](https://media.graphcms.com/fBQdODcrSXyo7oYhV5li)

The React community seems to be pretty united on the TS side as you can [see in this discussion about learning TypeScript](https://www.reddit.com/r/reactjs/comments/q6n5tz/should_i_add_typescript_to_my_arsenal/):

![learn-typescript.png](https://media.graphcms.com/NOA6Obg2Q6yJ6llpBDpD)

Personally, I rarely see a React job offer without mentioning TypeScript nowadays. Which doesn’t mean that it’s a requirement to get the job (especially for Junior devs) but rather that TS is a common tool in the tech stack of companies.

The reason for this adoption is that TypeScript helps you detect problems with your code while you write it (similar to ESLint). But while ESLint focuses on conventions and finding problematic patterns TS goes a bit deeper. Have a look at this example:

![typescript-example.png](https://media.graphcms.com/jeBAMXKEQZaTmXg9pGmV)

To ESLint this doesn’t seem like a problem. But it’s clearly wrong since a number doesn’t have a method `toUpperCase`. This code would pass our linter and introduce a bug.

TypeScript checks the type of the variable. It knows that `text` is a number (and not a string as the name suggests). Thus it complains that the function `text.toUpperCase` doesn’t exist:

![typescript-example-2.png](https://media.graphcms.com/QRVxm5W4RO7mo6cPKHIA)

[![Get on the waitlist for an upcoming course on professional react development](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9w13lunp1mpy0y6yo1vr.png)](https://profy.dev/waitlist?utm_source=rts-3&utm_medium=dev.to)

## 3. Most popular React testing frameworks and tools

ESLint and TypeScript are the first safeguards against bugs by statically analyzing your code. Automated tests are the third safeguard.

Automated tests ensure that the features of your app work correctly. This is particularly helpful to prevent regressions (meaning bugs introduced by changes to existing code). 

The testing landscape appears to be fragmented at first glance. These are the usage ratios of different testing libraries according to the [State of JS 2020 survey](https://2020.stateofjs.com/en-US/technologies/testing/#testing_experience_ranking):

![usage-ratio-testing-libraries.png](https://media.graphcms.com/tdqWqkbpStGNwXZe0gpq)

This looks like quite a handful at first but we can group and compare them by different use cases.

- Test frameworks: Jest vs Mocha vs Jasmine
- Utility libraries for testing React components: React Testing Library vs Enyzme
- End-to-end tests: Cypress vs Puppeteer vs Playwright
- UI testing and documentation: Storybook

### [Jest](https://jestjs.io/) (as most popular React testing framework)

![jest-vs-mocha-vs-jasmine.png](https://media.graphcms.com/EXNpSoFfTf66atIjbgAK)
*Source: [npmtrends.com](https://www.npmtrends.com/jest-vs-mocha-vs-jasmine), Jan 2022*

As you can see, Jest is the most used test framework in the JS testing landscape. If we narrow down on the React community Jest is probably even more predominant. I personally don’t know any React project that uses Jasmine or Mocha in favor of Jest. 

Jest is mostly used for unit tests (e.g. of business logic) or as the underlying test framework in combination with utility libraries like React Testing Library.

### [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) (as most popular React integration testing lib)

![react-testing-library-vs-enzyme.png](https://media.graphcms.com/Pj3IVpDmQb2AOtlJTGhL)
*Source: [npmtrends.com](https://www.npmtrends.com/@testing-library/react-vs-enzyme), Jan 2022*

Even though [Testing Library](https://testing-library.com/) shows a low usage ratio in the survey from 2020 it has clearly taken over as the go-to library for React tests according to the download stats. [This commenter](https://www.reddit.com/r/reactjs/comments/rkks6o/comment/hpc7f3u/) points it out well. 

![testing-library-as-industry-standard.png](https://media.graphcms.com/b0XcQ05Sg647CtOowh4Q)

React Testing Library is used to write integration tests. That means you don’t test every component in isolation but integrated with the system (e.g. a page or larger parent component). Most tests in a React application are typically integration tests.

> Note: If you want to learn more about the different types of tests check out [this blog post by Kent C. Dodds](https://kentcdodds.com/blog/static-vs-unit-vs-integration-vs-e2e-tests).
> 

Even though it’s still in use, the predecessor of React Testing Library (also RTL) called [Enzyme is dead](https://www.reddit.com/r/reactjs/comments/rkks6o/enzyme_is_dead_now_what/) by now. You’ll still find a lot of Enzyme tests in the wild but their usage will decrease in the future when more and more projects are updated to newer versions of React.

### [Cypress](https://www.cypress.io/) (as most popular end-to-end testing tool)

![cypress-vs-puppeteer-vs-selenium-vs-playwright-vs-testcafe.png](https://media.graphcms.com/GXSWXSPSRgCLbvbht4ON)
*Source: [npmtrends.com](https://www.npmtrends.com/cypress-vs-puppeteer-vs-selenium-webdriver-vs-playwright-vs-testcafe), Jan 2022*

End-to-end tests (also e2e-tests) are used to test the whole system from frontend to database. These tests ensure that everything works together. 

The most popular tool for e2e-tests according to the download stats is [Cypress](https://www.cypress.io/) with Puppeteer as the closest competitor. I personally have seen many teams adopt Cypress and can highly recommend it. You can watch the tests in a browser and time-travel through every step. This makes Cypress a great choice if you’re new to testing.

### [Storybook](https://storybook.js.org/) (as most popular React UI testing and documentation tool)

Since Storybook basically doesn’t have a competitor, let’s add React Testing Library and Cypress to illustrate how frequently it is used in the real world. Note that Storybook and Cypress are framework-agnostic.

![storybook-vs-react-testing-library-vs-cypress-vs-react-styleguidist.png](https://media.graphcms.com/mmEyJTRgQbeG3tyJWUv9)
*Source: [npmtrends.com](https://www.npmtrends.com/@testing-library/react-vs-@storybook/ui-vs-cypress-vs-react-styleguidist), Jan 2022*

The download numbers of Storybook are even higher than the ones of Cypress. Storybook’s competitor react-styleguidist is basically non-existent in comparison. And [according to its website](https://storybook.js.org/use-cases), a lot of big-name companies make use of it.

![storybook-companies.png](https://media.graphcms.com/qWQY78BKTBqVlAaJg5Tk)

You wonder what Storybook is about?

In large apps, you can find thousands of components. So it’s really hard to keep an overview and the risk of duplication increases. Storybook solves this problem. With Storybook, you can create components in isolation and run them in a separate environment. You can easily test them by changing e.g. the props and screen sizes via the UI.

![storybook-example.png](https://media.graphcms.com/ZHuyqLBAQTuNpYOFs2yD)

[![Get on the waitlist for an upcoming course on professional react development](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kidho6vaz29qlkhlhr7m.png)](https://profy.dev/waitlist?utm_source=rts-4&utm_medium=dev.to) 

## 4. Most popular React developer workflows

### [Trunk Based Development](https://trunkbaseddevelopment.com/) (Git workflow for collaboration)

Apart from specific tools and libraries, almost every developer team relies on Git for version control, collaboration, and integrating tools like linting, type checks, and tests into their automation.

There are a handful of different Git workflows out there. A few years ago I mostly heard of Git Flow. But now even the original creator discourages using Git Flow for most web apps [on his website](https://nvie.com/posts/a-successful-git-branching-model/):

> Web apps are typically continuously delivered, not rolled back, and you don't have to support multiple versions of the software running in the wild. [...] If your team is doing continuous delivery of software, I would suggest to adopt a much simpler workflow (like GitHub flow) instead of trying to shoehorn git-flow into your team.
> 

From my experience, [trunk-based development](https://trunkbaseddevelopment.com/) is the most common and popular Git workflow used in professional teams building web apps (although I can’t base it on numbers, unfortunately). It’s very similar to the GitHub Flow mentioned in the quote above. In short, it works like this:

1. Create a new branch from the main branch.
2. Commit your code on this branch and push it to the remote repo (e.g. on GitHub).
3. Open a Pull Request (aka Merge Request) in the remote repo.
4. Run linter, type checks, and tests.
5. Let your team members review your code.
6. Merge the branch into the main branch.

> You can learn and experience trunk-based development/the GitHub Flow in my [free course by playing Minesweeper with a bot](https://profy.dev/project/github-minesweeper).
> 

Step 4 is automated with a Continuous Integration (CI) tool. Nowadays [GitHub Actions](https://github.com/features/actions) seems to gain more and more popularity because of its simple integration with GitHub.

The goal of the CI and the code reviews is to catch as many bugs as possible before the release and improve the readability, coherence, and quality of the code.

## Summary: An advanced React learning path

Once you covered the basics of React the best way to advance your skills is by building projects. To make the best of your time you can [approach your projects like a professional](https://profy.dev/article/react-projects-for-your-portfolio) using the list of tools and libraries above.

Here is a suggestion for your next project’s tech stack.

### 1. Learn Trunk Based Development

As a foundation of your development workflow, learn about Trunk Based Development and use it in your project. You can get your first hands-on experience with my [free course by playing Minesweeper with a bot](https://profy.dev/project/github-minesweeper). It only takes an hour or two.

### 2. Use Next.js

Set up the project with Next.js by running [npx create-next-app@latest](https://nextjs.org/docs/getting-started). Next.js adds some magic around React but it’s fairly easy to get started. You can simply edit or add pages in the `pages` folder like any other React component and learn the advanced features step by step when it’s required. If you want a bit more guidance you can also start with [this official tutorial](https://nextjs.org/learn/basics/create-nextjs-app).

### 3. Optional: Use TypeScript

I don’t think knowing TypeScript is expected by a Junior developer. But if you know some TypeScript already or you’d like to give it a try initialize the project via `npx create-next-app@latest --typescript`. 

In my opinion, it’s not necessary to force yourself to learn TS if you have a lot on your plate already. It can be pretty annoying to use in the beginning and slow you down a lot. If you work on an existing TS project though it can be a lot easier to pick up since you can peek at the type definitions of other developers and ask them for help. 

### 4. Use ESLint

Next.js comes with ESLint preinstalled. Adding `eslint:recommended` in addition to the default `next/core-web-vitals` might be a good idea to have a somewhat stricter set of rules.

### 5. Use Prettier

It helps to get used to a clean code format from the beginning. Here are instructions on [how to use Prettier together with ESLint in a Next.js app](https://nextjs.org/docs/basic-features/eslint#prettier).

### 6. Use styled-components or MUI

At least in one of your projects write custom styles to sharpen your CSS skills. 

The default Next.js app uses CSS modules out of the box. You can keep using it if you have a lot to learn already. Otherwise give styled-components a try. 

If you want to use a component library pick MUI since it’s the most widespread.

### 7. Write tests with Cypress

Write at least a few tests either with React Testing Library or Cypress. This will let you stand out from other Junior devs. 

Similar to TypeScript, starting to write tests can be a huge pain, unfortunately. Cypress has a few advantages here. Compared to React Testing Library (RTL) 

- it requires less setup (you simply run your app and visit its URL in the test)
- it has a lot of great features that make it intuitive to debug your tests.

For example, you can watch your tests run in the browser and time-travel by clicking through each step. You can even use [Cypress Testing Library](https://testing-library.com/docs/cypress-testing-library/intro/) on top so you already know the API of React Testing Library. 

So even though most tests for a React app are typically written with RTL it might make sense to start with Cypress if you’re new to testing.

### 8. Optional: Use Redux

Add Redux if your application has global state. If you build a project for your portfolio or simply as practice you can use Redux without a second thought. Redux is so widely spread in real-world apps that it’s useful to get some hands-on experience in any case. If you want to build a production app on the other hand you might want to [consider this advice](https://redux.js.org/faq/general#when-should-i-use-redux).

### 9. Optional: Use Storybook

Since it’s used in many projects it can make sense to add Storybook to one of your projects. It will definitely add a professional touch. And that in turn might impress a hiring manager.

Similar to testing it’s enough to document a few simple components just to get the hang of it.

[![Get on the waitlist for an upcoming course on professional react development](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ax4jldg7zbvftvygisbg.png)](https://profy.dev/waitlist?utm_source=rts-5&utm_medium=dev.to)