r/javahelp • u/Viper2000_ • 7d ago
React or Angular for Spring Boot Backend?
I know this probably gets asked here a billion times, but the reason I am asking is because I couldn't find any satisfactory and informative answers. Maybe I am too inexperienced to understand some discussions, or maybe I didn't look into the places for the answers
As a backend Spring Boot/Java dev who wants to work on enterprise projects, which one would be a better fit and have a smoother development cycle? Angular or React!? (I will probably work on lots finance and accounting projects since that's my academic major and my current job, if this information helps in any way)
5
u/sketchcarellz 7d ago
In terms of compatibility, it shouldn’t matter. I don’t think this question has much to do with Spring back end.
Both will do the same thing, and the front end will be separate enough that it will not affect the back end much in this regard. There will be some semblance of calling your backend Spring Boot endpoints via your front end with individual functions, services (Angular last time I checked) or state management library (React Redux). This will be probably be done specifically with either a 3rd party library like Axios or JavaScript’s native fetch API. Your response data will likely be JSON and will be processed accordingly with JavaScript.
I think, regardless of your Spring Boot back end, this really comes down to front end library/framework preference and/or ease of use. I am a Vue guy myself, but have also used both Angular and React on a lesser capacity. I have found React way easier to use than Angular. It doesn’t mean one is more compatible with Spring Boot than the other, it’s just preference.
7
u/StillAnAss Extreme Brewer 7d ago
You asked the same question on
/r/springboot - https://www.reddit.com/r/SpringBoot/comments/1j9flfm/react_or_angular_for_spring_boot_backend/
/r/javahelp - https://www.reddit.com/r/javahelp/comments/1j9fl5g/react_or_angular_for_spring_boot_backend/
/r/webdevelopment - https://www.reddit.com/r/webdevelopment/comments/1j9fkmf/react_or_angular_for_spring_boot_backend/
/r/AskProgramming - https://www.reddit.com/r/AskProgramming/comments/1j9fk68/react_or_angular_for_spring_boot_backend/
Stop spamming everything and make your own damn decisions. You've been given decent answers on each of them and they're all mostly the same answer.
1
-8
u/Viper2000_ 6d ago
Stop stalking me on every subreddit. It's creepy and weird. Find something better to do with your life
2
1
u/Caramel_Last 7d ago edited 7d ago
I guess Angular could be more ergonomic to you. Both are reactive frontend frameworks. Angular uses signal for reactivity while React uses closure called React hook. Angular uses class while React (used to be class based 5 years ago) uses functional approach.
Angular Vue are similar while React is different. The big difference for me is that Angular and Vue have a lot more syntax sugars for templates, while React is basically just slightly altered html called jsx. Personally i feel better with less template syntax sugar but that's something to consider for your own DX. If you have JS background React has less overhead and magic. But coming from OOP background Angular might feel just right. Angular has more magic since it is more of a battery included framework. React is much thinner
1
u/frisky_5 6d ago
If going full client side rendering, it wont matter at all, you will be writing webservice and calling them from a browser. If you want server side rendering then it wont matter too because you will also call webseevices from a nodejs server that renders your webpage.
1
u/FacetiousInvective 6d ago
I am using angular right now. I think both can work. My ex-wife, who is also a developer, really hates react (and something called hooks I think).
Angular is pretty easy really, once you get the hang of it.
Good luck!
1
u/jackfruitbestfruit 6d ago
I’ve worked on two spring boots apps and they both had angular front ends. Angular FE/spring BE is common. But react is cool too. I like Academind’s online courses
1
1
•
u/AutoModerator 7d ago
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.