Answer the question
In order to leave comments, you need to log in
Why and why use Angular or React.js along with Ruby on Rails?
Very often in the network there is a combination of RoR with one of 2 frameworks, as a beginner to learn RoR, I had a lot of questions in connection with this:
- For what purposes and real tasks do these js frameworks use?
- Pros and cons of each to use?
- Is it worth learning both or focus on one, if on one then which one?
Answer the question
In order to leave comments, you need to log in
It doesn’t matter to the Js framework what kind of backend you have, it needs to ask someone and give data to someone, it doesn’t matter to it what processes the data, be it python, php, or a yopta script, as a result it works with ready-made json. Js frameworks are often used for single page applications. You see a combination of RoR and Angular / Reac because these are the most popular frameworks
When a SPA is needed on the client, everything should work without reloading the page, or a lot of actions with the DOM, then they write the frontend and backend separately, because if you use the same ajax in the further development of the application, it will be difficult to support. I advise you to learn-use React-Redux, now such a bunch on the front-end is very popular due to the component approach and the use of data on flux ideas.
1. for the frontend
2. -
3. not worth it, because by the time you learn it, it will already be out of fashion. I would teach something more fundamental.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question