Y
Y
Yuri Krot2017-03-21 17:04:49
Angular
Yuri Krot, 2017-03-21 17:04:49

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

4 answer(s)
A
Anton, 2017-03-21
Reytarovsky @Antonchik

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

A
Andrew, 2017-03-21
@undefined_title

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.

A
alex maslakoff, 2017-03-22
@teke_teke

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.

D
dativav, 2017-03-22
@dativav

Ruby - runs on the server.
Angular, React - work on the client.
Nothing prevents them from combining.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question