V
V
vilix2015-10-24 15:08:47
Node.js
vilix, 2015-10-24 15:08:47

Is react.js needed in a semi-dynamic site (or in a particular case)?

Hello everyone, I'm making a site on node.js + express, layout using bootstrap, made a modal window on the main page for registration, then I actually want that after registration, the page does not reload, but only the panel with signin changes. I see how easy it is to implement in jquery.
Why would I need react in this case?
Do I understand correctly that it is needed only for my dynamic visual components, but for the simple asynchronous behavior of bootstrap and other elements, jquery will be enough for me?
Rather, a slightly different question arose, please explain to me how my specific behavior can be solved using react? descriptively naturally, I do not ask for any code.
thanks for answers

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita Gushchin, 2015-10-24
@vilix

1) React is a functional approach to UI development.
2) React is considered to be V from MVC. It is most commonly used with some kind of flux implementation (MVC is not used).
3) React is based on a virtual DOM
Based on these theses, you need to make the entire application on react (read react + flux), otherwise there is no profit. Accordingly, if you only need to make a login form - discard react, you don't need it.
But if you need to develop a SPA (or even just a site that will have a bunch of UI), then, believe me, with jQ it will all turn into spaghetti seasoned with crutch paste very, very quickly.
PS. React has its own blackjack bootstrap - https://react-bootstrap.github.io/

A
Andrey Antropov, 2015-10-24
@Laiff

React, by its concept, is necessary for component management of page content, plus it also has a nice bonus in the form of server rendering of the application, that is, react, like a virus, crawls in one small component, and ends up displaying the entire application using react.

K
keslo, 2015-10-24
@keslo

In your case, React can run on the server and already serve it up. JQ only works on the client side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question