<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/sorting-a-react-app-into-java-s-folder-structure-b69rkjepj" -->

---
title: Sorting A React App Into Java's Folder Structure | daily.dev
description: A step-by-step guide to integrating a React app into a Java/Maven project using the standard src/main and src/test folder conventions. Using react-app-rewired,...
canonical: https://daily.dev/posts/sorting-a-react-app-into-java-s-folder-structure-b69rkjepj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Sorting A React App Into Java's Folder Structure | daily.dev
og:description: A step-by-step guide to integrating a React app into a Java/Maven project using the standard src/main and src/test folder conventions. Using react-app-rewired,...
og:url: https://daily.dev/posts/sorting-a-react-app-into-java-s-folder-structure-b69rkjepj
og:image: https://api.daily.dev/og/posts/B69rkjepj.png
og:image:alt: Sorting A React App Into Java's Folder Structure
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sorting A React App Into Java's Folder Structure

**[nipafx \(Nicolai Parlog\)](https://daily.dev/sources/nipafx)** · 6 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to integrating a React app into a Java/Maven project using the standard src/main and src/test folder conventions. Using react-app-rewired, you can override Create React App's default paths so that JS sources live in src/main/js, tests in src/test/js, and package.json at the project root alongside pom.xml. The guide covers moving files, configuring config-overrides.js for both React and Jest, and wiring npm scripts to use react-app-rewired.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nipafx.dev/java-react-folders>

## Similar posts on daily.dev

- [React Folder Structure for Beginners: The Folder Organization That Finally Made Sense to Me](https://daily.dev/posts/react-folder-structure-for-beginners-the-folder-organization-that-finally-made-sense-to-me-uvkbilaco) · Medium · 277 upvotes · 19 comments
- [React native testing: A complete introductory guide](https://daily.dev/posts/react-native-testing-a-complete-introductory-guide-kxg9lfr2u) · Testim.io · 0 upvotes · 0 comments
- [How I Learned to Structure React Projects Around Change, Not Folders](https://daily.dev/posts/how-i-learned-to-structure-react-projects-around-change-not-folders-ccelaqkhn) · Medium · 121 upvotes · 4 comments
- [How to Build Reusable Architecture for Large Next.js Applications](https://daily.dev/posts/how-to-build-reusable-architecture-for-large-next-js-applications-bdnbcslfm) · freeCodeCamp · 6 upvotes · 0 comments
- [Testing React Apps](https://daily.dev/posts/testing-react-apps-qel0wpdur) · Kirupa · 1 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#java](https://daily.dev/tags/java), [#spring-boot](https://daily.dev/tags/spring-boot), [#jest](https://daily.dev/tags/jest)

[View this post on daily.dev](https://daily.dev/posts/sorting-a-react-app-into-java-s-folder-structure-b69rkjepj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Sorting A React App Into Java's Folder Structure","url":"https://daily.dev/posts/sorting-a-react-app-into-java-s-folder-structure-b69rkjepj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/sorting-a-react-app-into-java-s-folder-structure-b69rkjepj"},"datePublished":"2026-03-16T08:13:23.172Z","dateModified":"2026-03-16T08:19:40.493Z","description":"A step-by-step guide to integrating a React app into a Java/Maven project using the standard src/main and src/test folder conventions. Using react-app-rewired,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4dfb52051ea8f09945ca7e87b866ed85?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4dfb52051ea8f09945ca7e87b866ed85?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"nipafx (Nicolai Parlog)","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"nipafx (Nicolai Parlog)","logo":"https://media.daily.dev/image/upload/s--H_Echo_u--/f_auto,q_auto/v1773648772/logos/nipafx?_a=BAMAMiiu0","url":"https://daily.dev/sources/nipafx"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/sorting-a-react-app-into-java-s-folder-structure-b69rkjepj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"react,java,spring-boot,jest","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"nipafx (Nicolai Parlog)","item":"https://daily.dev/sources/nipafx"},{"@type":"ListItem","position":3,"name":"Sorting A React App Into Java's Folder Structure"}]}
```

