A
A
ayapergenov2016-05-19 13:28:53
JavaScript
ayapergenov, 2016-05-19 13:28:53

If React is not MVC, then how do they work with it?

As far as I understand React.js only provides View, how to work with it?
The main feature is the virtual DOM. Required for large projects.
How do they work with React.js on real projects? Used in tandem with another MVC?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DenJel, 2016-05-19
@ayapergenov

Do it the way you want, that's the beauty of it. It just draws the DOM, does not impose its architecture on you, it does not have directives, like in any other framework or JS-view lib, only vanilla.js. You just make a component, and depending on the logic you render it or not render it. Easier than a steamed turnip. And Flux, Redux, Flummox is already the organization of data and logic for your application. They have absolutely nothing to do with the reaction. You can throw out the react and insert another view lib. You can make the whole application in Angular, and just draw the login form in React. React is just layout with logic. Something similar to how you render HTML in PHP depending on the logic :) but instead of PHP - JS. And this happens without reloading the page right on the frontend, without contacting the server. And everything is broken down by components) Here is such a perverted comparison. Although the "experts" will now crap me to the fullest. How can you compare PHP and React)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question